~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/src/widgets-and-layouts/gallery-gtk.qdoc

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
**
 
3
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
 
4
** All rights reserved.
 
5
** Contact: Nokia Corporation (qt-info@nokia.com)
 
6
**
 
7
** This file is part of the documentation of the Qt Toolkit.
 
8
**
 
9
** $QT_BEGIN_LICENSE:LGPL$
 
10
** No Commercial Usage
 
11
** This file contains pre-release code and may not be distributed.
 
12
** You may use this file in accordance with the terms and conditions
 
13
** contained in the Technology Preview License Agreement accompanying
 
14
** this package.
 
15
**
 
16
** GNU Lesser General Public License Usage
 
17
** Alternatively, this file may be used under the terms of the GNU Lesser
 
18
** General Public License version 2.1 as published by the Free Software
 
19
** Foundation and appearing in the file LICENSE.LGPL included in the
 
20
** packaging of this file.  Please review the following information to
 
21
** ensure the GNU Lesser General Public License version 2.1 requirements
 
22
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
 
23
**
 
24
** In addition, as a special exception, Nokia gives you certain additional
 
25
** rights.  These rights are described in the Nokia Qt LGPL Exception
 
26
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
 
27
**
 
28
** If you have questions regarding the use of this file, please contact
 
29
** Nokia at qt-info@nokia.com.
 
30
**
 
31
**
 
32
**
 
33
**
 
34
**
 
35
**
 
36
**
 
37
**
 
38
** $QT_END_LICENSE$
 
39
**
 
40
****************************************************************************/
 
41
 
 
42
/*!
 
43
  \page gallery-gtk.html
 
44
 
 
45
  \title GTK Style Widget Gallery
 
46
  \ingroup gallery
 
47
 
 
48
  This page shows some of the widgets available in Qt
 
49
  when configured to use the "gtk" style.
 
50
 
 
51
  Take a look at the \l{Qt Widget Gallery} to see how Qt
 
52
  applications appear in other styles.
 
53
 
 
54
\raw HTML
 
55
<h2 align="center">Buttons</h2>
 
56
 
 
57
<table align="center" cellspacing="20%" width="100%">
 
58
<colgroup span="2">
 
59
  <col width="40%" />
 
60
  <col width="40%" />
 
61
</colgroup>
 
62
<tr>
 
63
<td align="center">
 
64
\endraw
 
65
\inlineimage gtk-pushbutton.png
 
66
\raw HTML
 
67
</td>
 
68
<td align="center">
 
69
\endraw
 
70
\inlineimage gtk-toolbutton.png
 
71
\raw HTML
 
72
</td>
 
73
</tr><tr>
 
74
<td align="justify" valign="top">
 
75
\endraw
 
76
The QPushButton widget provides a command button.\raw HTML
 
77
</td>
 
78
<td align="justify" valign="top">
 
79
\endraw
 
80
The QToolButton class provides a quick-access button to commands
 
81
       or options, usually used inside a QToolBar.\raw HTML
 
82
</td>
 
83
</tr>
 
84
<tr>
 
85
<td align="center">
 
86
\endraw
 
87
\inlineimage gtk-checkbox.png
 
88
\raw HTML
 
89
</td>
 
90
<td align="center">
 
91
\endraw
 
92
\inlineimage gtk-radiobutton.png
 
93
\raw HTML
 
94
</td>
 
95
</tr><tr>
 
96
<td align="justify" valign="top">
 
97
\endraw
 
98
The QCheckBox widget provides a checkbox with a text label.\raw HTML
 
99
</td>
 
100
<td align="justify" valign="top">
 
101
\endraw
 
102
The QRadioButton widget provides a radio button with a text or pixmap label.\raw HTML
 
103
</td>
 
104
</tr>
 
105
</table>
 
106
\endraw
 
107
\raw HTML
 
108
<h2 align="center">Containers</h2>
 
109
 
 
110
<table align="center" cellspacing="20%" width="100%">
 
111
<colgroup span="2">
 
112
  <col width="40%" />
 
113
  <col width="40%" />
 
114
</colgroup>
 
115
<tr>
 
116
<td align="center">
 
117
\endraw
 
118
\inlineimage gtk-groupbox.png
 
119
\raw HTML
 
120
</td>
 
121
<td align="center">
 
122
\endraw
 
123
\inlineimage gtk-tabwidget.png
 
124
\raw HTML
 
125
</td>
 
126
</tr><tr>
 
127
<td align="justify" valign="top">
 
128
\endraw
 
129
The QGroupBox widget provides a group box frame with a title.\raw HTML
 
130
</td>
 
131
<td align="justify" valign="top">
 
132
\endraw
 
133
The QTabWidget class provides a stack of tabbed widgets.\raw HTML
 
134
</td>
 
135
</tr>
 
136
<tr>
 
137
<td align="center">
 
138
\endraw
 
139
\inlineimage gtk-toolbox.png
 
140
\raw HTML
 
141
</td>
 
142
<td align="center">
 
143
\endraw
 
144
\inlineimage gtk-frame.png
 
145
\raw HTML
 
146
</td>
 
147
</tr><tr>
 
148
<td align="justify" valign="top">
 
149
\endraw
 
150
The QToolBox class provides a column of tabbed widget items.\raw HTML
 
151
</td>
 
152
<td align="justify" valign="top">
 
153
\endraw
 
154
The QFrame widget provides a simple decorated container for other widgets.\raw HTML
 
155
</td>
 
156
</tr>
 
157
</table>
 
158
\endraw
 
159
\raw HTML
 
160
<h2 align="center">Item Views</h2>
 
161
 
 
162
<table align="center" cellspacing="20%" width="100%">
 
163
<colgroup span="2">
 
164
  <col width="40%" />
 
165
  <col width="40%" />
 
166
</colgroup>
 
167
<tr>
 
168
<td align="center">
 
169
\endraw
 
170
\inlineimage gtk-listview.png
 
171
\raw HTML
 
172
</td>
 
173
<td align="center">
 
174
\endraw
 
175
\inlineimage gtk-treeview.png
 
176
\raw HTML
 
177
</td>
 
178
</tr><tr>
 
179
<td align="justify" valign="top">
 
180
\endraw
 
181
The QListView class provides a default model/view implementation of a list/icon view. The QListWidget class provides a classic item-based list/icon view.\raw HTML
 
182
</td>
 
183
<td align="justify" valign="top">
 
184
\endraw
 
185
The QTreeView class provides a default model/view implementation of a tree view. The QTreeWidget class provides a classic item-based tree view.\raw HTML
 
186
</td>
 
187
</tr>
 
188
<tr>
 
189
<td align="center">
 
190
\endraw
 
191
\inlineimage gtk-tableview.png
 
192
\raw HTML
 
193
</td>
 
194
</tr><tr>
 
195
<td align="justify" valign="top">
 
196
\endraw
 
197
The QTableView class provides a default model/view implementation of a table view. The QTableWidget class provides a classic item-based table view.\raw HTML
 
198
</td>
 
199
<td align="justify" valign="top">
 
200
\endraw
 
201
\raw HTML
 
202
</td>
 
203
</tr>
 
204
</table>
 
205
\endraw
 
206
\raw HTML
 
207
<h2 align="center">Display Widgets</h2>
 
208
 
 
209
<table align="center" cellspacing="20%" width="100%">
 
210
<colgroup span="2">
 
211
  <col width="40%" />
 
212
  <col width="40%" />
 
213
</colgroup>
 
214
<tr>
 
215
<td align="center">
 
216
\endraw
 
217
\inlineimage gtk-progressbar.png
 
218
\raw HTML
 
219
</td>
 
220
<td align="center">
 
221
\endraw
 
222
\inlineimage gtk-lcdnumber.png
 
223
\raw HTML
 
224
</td>
 
225
</tr><tr>
 
226
<td align="justify" valign="top">
 
227
\endraw
 
228
The QProgressBar widget provides a horizontal progress bar.\raw HTML
 
229
</td>
 
230
<td align="justify" valign="top">
 
231
\endraw
 
232
The QLCDNumber widget displays a number with LCD-like digits.\raw HTML
 
233
</td>
 
234
</tr>
 
235
<tr>
 
236
<td align="center">
 
237
\endraw
 
238
\inlineimage gtk-label.png
 
239
\raw HTML
 
240
</td>
 
241
</tr><tr>
 
242
<td halign="justify" valign="top">
 
243
\endraw
 
244
The QLabel widget provides a text or image display.\raw HTML
 
245
</td>
 
246
</tr>
 
247
</table>
 
248
\endraw
 
249
\raw HTML
 
250
<h2 align="center">Input Widgets</h2>
 
251
 
 
252
<table align="center" cellspacing="20%" width="100%">
 
253
<colgroup span="2">
 
254
  <col width="40%" />
 
255
  <col width="40%" />
 
256
</colgroup>
 
257
<tr>
 
258
<td align="center">
 
259
\endraw
 
260
\inlineimage gtk-slider.png
 
261
\raw HTML
 
262
</td>
 
263
<td align="center">
 
264
\endraw
 
265
\inlineimage gtk-lineedit.png
 
266
\raw HTML
 
267
</td>
 
268
</tr><tr>
 
269
<td align="justify" valign="top">
 
270
\endraw
 
271
The QSlider widget provides a vertical or horizontal slider.\raw HTML
 
272
</td>
 
273
<td align="justify" valign="top">
 
274
\endraw
 
275
The QLineEdit widget is a one-line text editor.\raw HTML
 
276
</td>
 
277
</tr>
 
278
<tr>
 
279
<td align="center">
 
280
\endraw
 
281
\inlineimage gtk-combobox.png
 
282
\raw HTML
 
283
</td>
 
284
<td align="center">
 
285
\endraw
 
286
\inlineimage gtk-doublespinbox.png
 
287
\raw HTML
 
288
</td>
 
289
</tr><tr>
 
290
<td align="justify" valign="top">
 
291
\endraw
 
292
The QComboBox widget is a combined button and pop-up list.\raw HTML
 
293
</td>
 
294
<td align="justify" valign="top">
 
295
\endraw
 
296
The QDoubleSpinBox class provides a spin box widget that allows double precision floating point numbers to be entered.\raw HTML
 
297
</td>
 
298
</tr>
 
299
<tr>
 
300
<td align="center">
 
301
\endraw
 
302
\inlineimage gtk-spinbox.png
 
303
\raw HTML
 
304
</td>
 
305
<td align="center">
 
306
\endraw
 
307
\inlineimage gtk-timeedit.png
 
308
\raw HTML
 
309
</td>
 
310
</tr><tr>
 
311
<td align="justify" valign="top">
 
312
\endraw
 
313
The QSpinBox class provides a spin box widget.\raw HTML
 
314
</td>
 
315
<td align="justify" valign="top">
 
316
\endraw
 
317
The QTimeEdit class provides a widget for editing times.\raw HTML
 
318
</td>
 
319
</tr>
 
320
<tr>
 
321
<td align="center">
 
322
\endraw
 
323
\inlineimage gtk-dateedit.png
 
324
\raw HTML
 
325
</td>
 
326
<td align="center">
 
327
\endraw
 
328
\inlineimage gtk-datetimeedit.png
 
329
\raw HTML
 
330
</td>
 
331
</tr><tr>
 
332
<td align="justify" valign="top">
 
333
\endraw
 
334
The QDateEdit class provides a widget for editing dates.\raw HTML
 
335
</td>
 
336
<td align="justify" valign="top">
 
337
\endraw
 
338
The QDateTimeEdit class provides a widget for editing dates and times.\raw HTML
 
339
</td>
 
340
</tr>
 
341
<tr>
 
342
<td align="center">
 
343
\endraw
 
344
\inlineimage gtk-textedit.png
 
345
\raw HTML
 
346
</td>
 
347
<td align="center">
 
348
\endraw
 
349
\inlineimage gtk-horizontalscrollbar.png
 
350
\raw HTML
 
351
</td>
 
352
</tr><tr>
 
353
<td align="justify" valign="top">
 
354
\endraw
 
355
The QTextEdit class provides a widget that is used to edit and
 
356
     display both plain and rich text.\raw HTML
 
357
</td>
 
358
<td align="justify" valign="top">
 
359
\endraw
 
360
The QScrollBar widget provides a vertical or horizontal scroll bar. Here, we show a scroll bar with horizontal orientation.\raw HTML
 
361
</td>
 
362
</tr>
 
363
<tr>
 
364
<td align="center">
 
365
\endraw
 
366
\inlineimage gtk-dial.png
 
367
\raw HTML
 
368
</td>
 
369
<td align="center">
 
370
\endraw
 
371
\inlineimage gtk-calendarwidget.png
 
372
\raw HTML
 
373
</td>
 
374
</tr><tr>
 
375
<td align="justify" valign="top">
 
376
\endraw
 
377
The QDial class provides a rounded range control (like a
 
378
       speedometer or potentiometer).\raw HTML
 
379
</td>
 
380
<td align="justify" valign="top">
 
381
\endraw
 
382
The QCalendarWidget class provides a monthly calendar widget that can be used to select dates.\raw HTML
 
383
</td>
 
384
</tr>
 
385
<tr>
 
386
<td align="center">
 
387
\endraw
 
388
\inlineimage gtk-fontcombobox.png
 
389
\raw HTML
 
390
</td>
 
391
</tr><tr>
 
392
<td halign="justify" valign="top">
 
393
\endraw
 
394
The QFontComboBox widget is a specialized combobox that enables fonts to be selected from a pop-up list containing previews of available fonts.\raw HTML
 
395
</td>
 
396
</tr>
 
397
</table>
 
398
\endraw
 
399
*/