summaryrefslogtreecommitdiffstats
path: root/doc/pictures.doc
blob: b9c1510e4c4e93557fec856337d59d954c767b82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/****************************************************************************
**
** Pictures of Most Widgets in Qt
**
** Copyright (C) 1992-2008 Trolltech ASA.  All rights reserved.
**
** This file is part of the TQt GUI Toolkit.
**
** This file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free
** Software Foundation and appearing in the files LICENSE.GPL2
** and LICENSE.GPL3 included in the packaging of this file.
** Alternatively you may (at your option) use any later version
** of the GNU General Public License if such license has been
** publicly approved by Trolltech ASA (or its successors, if any)
** and the KDE Free TQt Foundation.
**
** Please review the following information to ensure GNU General
** Public Licensing requirements will be met:
** http://trolltech.com/products/qt/licenses/licensing/opensource/.
** If you are unsure which license is appropriate for your use, please
** review the following information:
** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
** or contact the sales department at sales@trolltech.com.
**
** This file may be used under the terms of the Q Public License as
** defined by Trolltech ASA and appearing in the file LICENSE.QPL
** included in the packaging of this file.  Licensees holding valid Qt
** Commercial licenses may use this file in accordance with the Qt
** Commercial License Agreement provided with the Software.
**
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
** herein.
**
**********************************************************************/

/*!
\page pictures.html

\title Pictures of Most TQt Widgets

Most of these widgets are shown in either Motif or Windows style. 
All widgets are supported in both styles (and other \link TQStyle
styles\endlink), but for clarity we just present a selection.

Qt provides more widgets than the selection shown below. And extra Qt
are available from third parties, and as add-ons to Qt; see \link
http://www.trolltech.com/products/solutions/index.html Qt
Solutions\endlink, and \link
http://www.trolltech.com/freesoftware/index.html User contributed Qt
additions\endlink.

\omit
Below is a screen shot of the demo example running under Linux. It
shows off many of Qt's widgets. (The source is in \c{examples/demo}.

\img demo-screenshot.png
\endomit


Below we have three views seperated by \l {QSplitter}s. At the
top-left there's a \l QListBox, at the top-right there's a \l
QListView with a \l QHeader and two \l {QScrollBar}s. And at the
bottom there's a \l TQIconView.

\img splitter-views-w.png

Below we present a \l QMainWindow which has
a \l QMenuBar and some \l {QToolBar}s that contain
various widgets, e.g. \l {QToolButton}s and \l {QComboBox}es. The central
widget is a \l QWorkspace which is used for MDI window management and
which contains an MDI-Window featuring a \l TQTextEdit. At the bottom
you see a \l QStatusBar and at the bottom-right a \l QSizeGrip.

\img mainwindow-w.png

The image below shows a \l QFileDialog. On the Macintosh and Windows
platforms you can either use a QFileDialog or the native file
dialog. This is explained in the \l QFileDialog class documentation.

\img qfiledlg-w.png

Below is a QPrintDialog. On Macintosh and Windows the native print
dialog is used, but for other platforms we provide QPrintDialog. Use
QPrinter::setup() for portability instead of the QPrintDialog if you
need to be platform independent.

\img qprintdlg-m.png

Below is a \l QFontDialog.

\img qfontdlg-w.png
\caption Windows

The screenshot below shows a \l QColorDialog.

\img qcolordlg-w.png

Messages are presented using \l{QMessageBox}es, as shown below.

\img qmsgbox-w.png

The image below shows a \l QProgressDialog. The \l QProgressBar can
also be used as a separate widget.

\img qprogdlg-w.png

In the screenshot below we have a \l QGroupBox that contains a \l
QLineEdit, a read-only \l QComboBox and an editable \l QComboBox.

\img groupbox-w.png

The screenshot below shows a \l QPopupMenu.

\img qpopmenu-w.png

In the screenshot below there's a \l QButtonGroup containing four \l
{QRadioButton}s and two \l {QCheckBox}es.

\img buttongroup-w.png

\omit
THIS IMAGE DOESN'T SHOW ANYTHING UNDERSTANDABLY USEFUL

All views in the first screenshot are widgets derived from a \l
QScrollView. But this class can also manage lots of child-widgets,
like in this screenshot.

\img qscrollview-m.png
\endomit

The screenshot below shows a \l QTabDialog. The tabs (\l QTabBar) or the
more convenient class \l QTabWidget, which combines a tab bar with
the pages, can be used separately. In the visible page you see a \l
QLabel, the range controls \l QSlider and \l QSpinBox and below a \l
QLCDNumber. In the bottom row there are some \l {QPushButton}s.

\img qtabdlg-w.png

In the screenshot below there's a \l TQTextBrowser displaying a HTML
page. See also \l TQTextEdit.

\img tqtextbrowser-w.png

*/