/**************************************************************************** ** ** 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 {TQSplitter}s. At the top-left there's a \l TQListBox, at the top-right there's a \l TQListView with a \l TQHeader and two \l {TQScrollBar}s. And at the bottom there's a \l TQIconView. \img splitter-views-w.png Below we present a \l TQMainWindow which has a \l TQMenuBar and some \l {TQToolBar}s that contain various widgets, e.g. \l {TQToolButton}s and \l {TQComboBox}es. The central widget is a \l TQWorkspace which is used for MDI window management and which contains an MDI-Window featuring a \l TQTextEdit. At the bottom you see a \l TQStatusBar and at the bottom-right a \l TQSizeGrip. \img mainwindow-w.png The image below shows a \l TQFileDialog. On the Macintosh and Windows platforms you can either use a TQFileDialog or the native file dialog. This is explained in the \l TQFileDialog class documentation. \img tqfiledlg-w.png Below is a TQPrintDialog. On Macintosh and Windows the native print dialog is used, but for other platforms we provide TQPrintDialog. Use TQPrinter::setup() for portability instead of the TQPrintDialog if you need to be platform independent. \img tqprintdlg-m.png Below is a \l TQFontDialog. \img tqfontdlg-w.png \caption Windows The screenshot below shows a \l TQColorDialog. \img tqcolordlg-w.png Messages are presented using \l{TQMessageBox}es, as shown below. \img qmsgbox-w.png The image below shows a \l TQProgressDialog. The \l TQProgressBar can also be used as a separate widget. \img qprogdlg-w.png In the screenshot below we have a \l TQGroupBox that contains a \l TQLineEdit, a read-only \l TQComboBox and an editable \l TQComboBox. \img groupbox-w.png The screenshot below shows a \l TQPopupMenu. \img qpopmenu-w.png In the screenshot below there's a \l TQButtonGroup containing four \l {TQRadioButton}s and two \l {TQCheckBox}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 TQScrollView. But this class can also manage lots of child-widgets, like in this screenshot. \img tqscrollview-m.png \endomit The screenshot below shows a \l TQTabDialog. The tabs (\l TQTabBar) or the more convenient class \l TQTabWidget, which combines a tab bar with the pages, can be used separately. In the visible page you see a \l TQLabel, the range controls \l TQSlider and \l TQSpinBox and below a \l TQLCDNumber. In the bottom row there are some \l {TQPushButton}s. \img tqtabdlg-w.png In the screenshot below there's a \l TQTextBrowser displaying a HTML page. See also \l TQTextEdit. \img tqtextbrowser-w.png */