- Qt参考文档
- Qt的类
- Qt的主要类
- Annotated Class Index
- 分组的类
- Member Function Index
- 关于Qt
- Qt的版本
- FAQs
- Window System-specific Notes
- 安装
- 如何学习Qt
- Qt教程一 —— 共十四步
- Qt教程二
- Examples
- Step-by-step Examples
- Key Features in Qt 3.0
- Porting to Qt 3.x
- 简体中文汉化日志
- Class Inheritance Hierarchy
- Qt Class Chart
- Header File Index
- 关于模块
- 画布模块
- 图标视图模块
- Network Module
- Qt OpenGL 三维绘图
- SQL模块
- 表格模块
- 工作区模块
- XML Module
- 概述与HOWTO
- Qt对象模型
- 信号和槽
- 窗口几何结构
- 事件和事件过滤器
- 以Qt国际化
- 调试技术
- Qt中的线程支持
- Qt插件HOWTO
- Pictures of Most Qt Widgets
- Company Information
- 如何报告bug
- Mailing Lists
- Qt的工具
- Qt翻译工具指南
- Qt助手和Qt参考文档
- qmake用户手册
- Standard Accelerator Keys
- Qt Free Edition License Agreement
- GNU General Public License
- Licenses for Code Used in Qt
- 抽象窗口部件类
- Analog Clock
- Walkthrough: A Tiny Editor Illustrating QActionGroup
- A Tiny Example Featuring QActionGroup
- Simple Addressbook
- Advanced Widgets
- Widget Appearance and Style
- Setting the Application Icon
- Main Window and Related Classes
- 介绍
- Qt参考文档介绍
- The 1 Minute Guide to using Qt Assistant
- Qt Assistant in More Detail
- Basic Widgets
- Biff (UNIX only)
- 如何生成大的稀疏QTable
- Buttons and Groupboxes
- A Complete Canvas Application
- Canvas Example
- Listviews with Checkable Items
- A small client-server example
- Collection Classes
- 坐标系统
- Cursors
- 写你自己的布局管理器
- Customized Layoutmanager
- Style overview
- Database Classes
- Format of the QDataStream Operators
- Digital Clock
- Qt Demo
- Qt 设计器
- Reference: Menu Options
- Reference: Toolbar Buttons
- Reference: Dialogs
- Reference: Wizards
- Reference: Windows
- Reference: The .ui File Format
- Creating a Qt Application
- Creating Main Windows with Actions, Toolbars and Menus
- The Designer Approach
- Subclassing and Dynamic Dialogs
- Creating Custom Widgets
- Creating Database Applications
- Customizing and Integrating Qt Designer
- Reference: Key Bindings
- Painting on the Desktop
- Dialog Classes
- A Directory Browser
- 拖放
- Drag And Drop Classes
- Drag and Drop
- Draw Demo
- Connect the Points
- Adding an accelerated graphics driver to Qt/Embedded
- Qt/Embedded Case Study - Cassiopeia E-100
- Character input in Qt/Embedded
- The Qt/Embedded-specific classes
- Qt/Embedded environment variables
- The Feature Definition File
- Fonts in Qt/Embedded
- Enabling the Linux Framebuffer
- Installing Qt/Embedded
- Qt/Embedded Performance Tuning
- Qt/Embedded Pointer Handling
- Porting your applications to Qt/Embedded
- Qt/嵌入式的虚拟帧缓冲
- Running Qt/Embedded applications
- Qt/Embedded as a VNC Server
- Environment Classes
- Event Classes
- Simple Filemanager
- 键盘焦点概述
- A Rectangle Draw "Benchmark"
- An FTP client
- Layout Management
- Grapher Plugin
- Graphics Classes
- Books about GUI
- Hello, World
- Help System
- Simple HTML Help Browser
- Internationalization
- Iconview
- iconview/simple_dd/main.cpp Example File
- iconview/simple_dd/main.h Example File
- Image Processing Classes
- Qt参考文档
- 安装Qt/Windows
- 安装Qt/X11
- Input/Output and Networking
- 布局类
- Layout Managers
- Conway's Game of Life
- Line Edits
- 介绍
- 发布管理器
- Translators
- Programmers
- Listboxes and Comboboxes
- Listbox Example
- Listviews
- A simple mail client
- Editors in a Motif form
- Editors in a Qt main window
- Editors in an Xt form
- makeqpf
- A MDI Application
- Using menus
- 元对象系统
- Miscellaneous Classes
- 使用元对象编译器
- Movies or the Story of the Animated GIF file
- Multimedia Classes
- Network Examples
- A simple NNTP implementation
- Qt-based LiveConnect Plugins
- LiveConnect Examples
- Object Model
- 对象树和对象所有权
- OpenGL Examples
- How to use X11 overlays with the Qt OpenGL extension
- Organizers
- Outliner to show use of DOM
- Picture
- Plugins
- Popup Widgets
- Table of Prime Numbers 2-9999
- Starting processes with IO redirection
- Progress Bar
- Progress Bar and Dialog Example
- 属性
- QAccel类
- qaccel.h包含文件
- QAccel成员列表
- QAccessible Class
- qaccessible.h Include File
- QAccessibleInterface Class
- QAccessibleInterface Member List
- QAccessible Member List
- QAccessibleObject Class
- QAccessibleObject Member List
- QAction类
- A Complete Application Window with Actions
- QAction Examples
- QActionGroup类
- QActionGroup成员列表
- qaction.h包含文件
- QAction成员列表
- QApplication类
- qapplication.h包含文件
- QApplication成员列表
- QAsciiCache Class
- qasciicache.h Include File
- QAsciiCacheIterator Class
- QAsciiCacheIterator Member List
- QAsciiCache Member List
- QAsciiDict Class
- qasciidict.h Include File
- QAsciiDictIterator Class
- QAsciiDictIterator Member List
- QAsciiDict Member List
- qasyncimageio.h Include File
- QAsyncIO Class
- qasyncio.h Include File
- QBitArray类
- qbitarray.h包含文件
- QBitArray成员列表
- QBitmap Class
- qbitmap.h Include File
- QBitmap Member List
- QBitVal Class
- QBitVal Member List
- QBoxLayout Class
- QBoxLayout Member List
- QBrush Class
- qbrush.h Include File
- QBrush Member List
- QBuffer类
- qbuffer.h包含文件
- QBuffer成员列表
- QButton类
- QButtonGroup类
- qbuttongroup.h包含文件
- QButtonGroup成员列表
- qbutton.h包含文件
- QButton成员列表
- QByteArray类
- QByteArray成员列表
- QCache Class
- qcache.h Include File
- QCacheIterator Class
- QCacheIterator Member List
- QCache Member List
- QCanvas Class
- QCanvasEllipse Class
- QCanvasEllipse Member List
- qcanvas.h Include File
- QCanvasItem Class
- QCanvasItemList Class
- QCanvasItemList Member List
- QCanvasItem Member List
- QCanvasLine Class
- QCanvasLine Member List
- QCanvas Member List
- QCanvasPixmap Class
- QCanvasPixmapArray Class
- QCanvasPixmapArray Member List
- QCanvasPixmap Member List
- QCanvasPolygon Class
- QCanvasPolygonalItem Class
- QCanvasPolygonalItem Member List
- QCanvasPolygon Member List
- QCanvasRectangle Class
- QCanvasRectangle Member List
- QCanvasSpline Class
- QCanvasSpline Member List
- QCanvasSprite Class
- QCanvasSprite Member List
- QCanvasText Class
- QCanvasText Member List
- QCanvasView Class
- QCanvasView Member List
- QCDEStyle Class
- qcdestyle.h Include File
- QCDEStyle Member List
- QChar Class
- QChar Member List
- QCharRef Class
- QCharRef Member List
- QCheckBox类
- qcheckbox.h包含文件
- QCheckBox成员列表
- QCheckListItem Class
- QCheckListItem Member List
- QCheckTableItem类
- QCheckTableItem成员列表
- QChildEvent Class
- QChildEvent Member List
- QClipboard类
- qclipboard.h包含文件
- QClipboard成员列表
- QCloseEvent Class
- QCloseEvent Member List
- QColor Class
- QColorDialog类
- qcolordialog.h包含文件
- QColorDialog成员列表
- QColorDrag Class
- QColorDrag Member List
- QColorGroup Class
- QColorGroup Member List
- qcolor.h Include File
- QColor Member List
- QComboBox Class
- qcombobox.h Include File
- QComboBox Member List
- QComboTableItem类
- QComboTableItem成员列表
- QCommonStyle Class
- qcommonstyle.h Include File
- QCommonStyle Member List
- QConstString Class
- QConstString Member List
- QContextMenuEvent Class
- QContextMenuEvent Member List
- QCopChannel Class
- qcopchannel_qws.h Include File
- QCopChannel Member List
- QCString类
- qcstring.h包含文件
- QCString成员列表
- QCursor Class
- qcursor.h Include File
- QCursor Member List
- QCustomEvent Class
- QCustomEvent Member List
- QCustomMenuItem Class
- QCustomMenuItem Member List
- QDataBrowser Class
- qdatabrowser.h Include File
- QDataBrowser Member List
- QDataPump Class
- QDataPump Member List
- QDataSink Class
- QDataSource Class
- QDataSource Member List
- QDataStream类
- qdatastream.h包含文件
- QDataStream成员列表
- QDataTable Class
- qdatatable.h Include File
- QDataTable Member List
- QDataView Class
- qdataview.h Include File
- QDataView Member List
- QDate类
- QDateEdit Class
- QDateEdit Member List
- QDate成员列表
- QDateTime类
- QDateTimeEdit Class
- qdatetimeedit.h Include File
- QDateTimeEdit Member List
- qdatetime.h包含文件
- QDateTime成员列表
- QDesktopWidget Class
- qdesktopwidget.h Include File
- QDesktopWidget Member List
- QDial Class
- qdial.h Include File
- QDial Member List
- QDialog类
- qdialog.h包含文件
- QDialog成员列表
- QDict Class
- qdict.h Include File
- QDictIterator Class
- QDictIterator Member List
- QDict Member List
- QDir类
- QDirectPainter Class
- qdirectpainter_qws.h Include File
- QDirectPainter Member List
- QDir
- qdir.h包含文件
- QDir成员列表
- QDns Class
- qdns.h Include File
- QDns Member List
- QDockArea类
- qdockarea.h包含文件
- QDockArea成员列表
- QDockWindow类
- qdockwindow.h包含文件
- QDockWindow成员列表
- QDomAttr Class
- QDomAttr Member List
- QDomCDATASection Class
- QDomCDATASection Member List
- QDomCharacterData Class
- QDomCharacterData Member List
- QDomComment Class
- QDomComment Member List
- QDomDocument Class
- QDomDocumentFragment Class
- QDomDocumentFragment Member List
- QDomDocument Member List
- QDomDocumentType Class
- QDomDocumentType Member List
- QDomElement Class
- QDomElement Member List
- QDomEntity Class
- QDomEntity Member List
- QDomEntityReference Class
- QDomEntityReference Member List
- qdom.h Include File
- QDomImplementation Class
- QDomImplementation Member List
- QDomNamedNodeMap Class
- QDomNamedNodeMap Member List
- QDomNode Class
- QDomNodeList Class
- QDomNodeList Member List
- QDomNode Member List
- QDomNotation Class
- QDomNotation Member List
- QDomProcessingInstruction Class
- QDomProcessingInstruction Member List
- QDomText Class
- QDomText Member List
- QDoubleValidator类
- QDoubleValidator成员列表
- QDragEnterEvent Class
- QDragEnterEvent Member List
- QDragLeaveEvent Class
- QDragLeaveEvent Member List
- QDragMoveEvent Class
- QDragMoveEvent Member List
- QDragObject Class
- qdragobject.h Include File
- QDragObject Member List
- qdrawutil.h Include File
- QDropEvent Class
- QDropEvent Member List
- QDropSite Class
- qdropsite.h Include File
- QEditorFactory Class
- qeditorfactory.h Include File
- QEditorFactory Member List
- QEmbed - File and Image Embedder
- QErrorMessage类
- qerrormessage.h包含文件
- QErrorMessage成员列表
- QEucJpCodec Class
- qeucjpcodec.h Include File
- QEucJpCodec Member List
- QEucKrCodec Class
- qeuckrcodec.h Include File
- QEucKrCodec Member List
- QEvent类
- qevent.h包含文件
- QEvent成员列表
- Font Displayer
- QFile类
- QFileDialog类
- qfiledialog.h包含文件
- QFileDialog成员列表
- qfile.h包含文件
- QFileIconProvider Class
- QFileIconProvider Member List
- QFileInfo Class
- qfileinfo.h Include File
- QFileInfo Member List
- QFile成员列表
- QFilePreview Class
- QFilePreview Member List
- QFocusData Class
- qfocusdata.h Include File
- QFocusData Member List
- QFocusEvent Class
- QFocusEvent Member List
- QFont Class
- QFontDatabase Class
- qfontdatabase.h Include File
- QFontDatabase Member List
- QFontDialog类
- qfontdialog.h包含文件
- QFontDialog成员列表
- QFont Examples
- qfont.h Include File
- QFontInfo Class
- qfontinfo.h Include File
- QFontInfo Member List
- QFontManager Class
- qfontmanager_qws.h Include File
- QFontManager Member List
- QFont Member List
- QFontMetrics Class
- qfontmetrics.h Include File
- QFontMetrics Member List
- QFrame类
- qframe.h包含文件
- QFrame成员列表
- QFtp类
- qftp.h包含文件
- QFtp成员列表
- QGb18030Codec Class
- qgb18030codec.h Include File
- QGb18030Codec Member List
- QGbkCodec Class
- QGbkCodec Member List
- qgfx_qws.h Include File
- QGL Class
- QGLayoutIterator Class
- QGLayoutIterator Member List
- QGLColormap Class
- qglcolormap.h Include File
- QGLColormap Member List
- QGLContext Class
- QGLContext Member List
- QGLFormat Class
- QGLFormat Member List
- qgl.h Include File
- QGL Member List
- qglobal.h Include File
- QGLWidget Class
- QGLWidget Member List
- QGrid类
- qgrid.h包含文件
- QGridLayout Class
- QGridLayout Member List
- QGrid成员列表
- QGridView Class
- qgridview.h Include File
- QGridView Member List
- QGroupBox类
- qgroupbox.h包含文件
- QGroupBox成员列表
- QGuardedPtr类
- qguardedptr.h包含文件
- QGuardedPtr成员列表
- QHBox Class
- qhbox.h Include File
- QHBoxLayout Class
- QHBoxLayout Member List
- QHBox Member List
- QHButtonGroup类
- qhbuttongroup.h包含文件
- QHButtonGroup成员列表
- QHeader类
- qheader.h包含文件
- QHeader成员列表
- QHebrewCodec Class
- QHebrewCodec Member List
- QHGroupBox类
- qhgroupbox.h包含文件
- QHGroupBox成员列表
- QHideEvent Class
- QHideEvent Member List
- QHostAddress Class
- qhostaddress.h Include File
- QHostAddress Member List
- QHttp Class
- qhttp.h Include File
- QHttp Member List
- QIconDrag Class
- QIconDragItem Class
- QIconDragItem Member List
- QIconDrag Member List
- QIconSet Class
- qiconset.h Include File
- QIconSet Member List
- QIconView Class
- qiconview.h Include File
- QIconViewItem Class
- QIconViewItem Member List
- QIconView Member List
- QImage Class
- QImageConsumer Class
- QImageConsumer Member List
- QImageDecoder Class
- QImageDecoder Member List
- QImageDrag Class
- QImageDrag Member List
- QImageFormat Class
- QImageFormat Member List
- QImageFormatPlugin Class
- qimageformatplugin.h Include File
- QImageFormatPlugin Member List
- QImageFormatType Class
- QImageFormatType Member List
- qimage.h Include File
- QImageIO Class
- QImageIO Member List
- QImage Member List
- QIMEvent Class
- QIMEvent Member List
- QInputDialog类
- qinputdialog.h包含文件
- QInputDialog成员列表
- QIntCache Class
- qintcache.h Include File
- QIntCacheIterator Class
- QIntCacheIterator Member List
- QIntCache Member List
- QIntDict Class
- qintdict.h Include File
- QIntDictIterator Class
- QIntDictIterator Member List
- QIntDict Member List
- QIntValidator类
- QIntValidator成员列表
- QIODevice类
- qiodevice.h包含文件
- QIODevice成员列表
- QIODeviceSource Class
- QJisCodec Class
- qjiscodec.h Include File
- QJisCodec Member List
- qkeyboard_qws.h Include File
- QKeyEvent Class
- QKeyEvent Member List
- QKeySequence Class
- qkeysequence.h Include File
- QKeySequence Member List
- QLabel Class
- qlabel.h Include File
- QLabel Member List
- QLayout Class
- qlayout.h Include File
- QLayoutItem Class
- QLayoutItem Member List
- QLayoutIterator Class
- QLayoutIterator Member List
- QLayout Member List
- QLCDNumber Class
- qlcdnumber.h Include File
- QLCDNumber Member List
- QLibrary Class
- qlibrary.h Include File
- QLibrary Member List
- QLineEdit Class
- qlineedit.h Include File
- QLineEdit Member List
- QListBox Class
- qlistbox.h Include File
- QListBoxItem Class
- QListBoxItem Member List
- QListBox Member List
- QListBoxPixmap Class
- QListBoxPixmap Member List
- QListBoxText Class
- QListBoxText Member List
- QListView Class
- qlistview.h Include File
- QListViewItem Class
- QListViewItemIterator Class
- QListViewItemIterator Member List
- QListViewItem Member List
- QListView Member List
- QLocalFs Class
- qlocalfs.h Include File
- QLocalFs Member List
- QLock Class
- qlock_qws.h Include File
- QLock Member List
- QMag
- QMainWindow类
- qmainwindow.h包含文件
- QMainWindow成员列表
- qmake的介绍
- 安装qmake
- 10分钟学会使用qmake
- qmake教程
- qmake概念
- qmake高级概念
- qmake Command Reference
- QMap Class
- QMapConstIterator Class
- QMapConstIterator Member List
- qmap.h Include File
- QMapIterator Class
- QMapIterator Member List
- QMap Member List
- QMemArray类
- qmemarray.h包含文件
- QMemArray成员列表
- QMenuBar Class
- qmenubar.h Include File
- QMenuBar Member List
- QMenuData Class
- qmenudata.h Include File
- QMenuData Member List
- QMessageBox类
- qmessagebox.h包含文件
- QMessageBox成员列表
- QMetaObject Class
- qmetaobject.h Include File
- QMetaObject Member List
- QMetaProperty Class
- QMetaProperty Member List
- qmime.h Include File
- QMimeSource Class
- QMimeSourceFactory Class
- QMimeSourceFactory Member List
- QMimeSource Member List
- QMotifPlusStyle Class
- qmotifplusstyle.h Include File
- QMotifPlusStyle Member List
- QMotifStyle Class
- qmotifstyle.h Include File
- QMotifStyle Member List
- QMouseEvent Class
- QMouseEvent Member List
- QMoveEvent Class
- QMoveEvent Member List
- QMovie Class
- qmovie.h Include File
- QMovie Member List
- QMultiLineEdit Class
- qmultilineedit.h Include File
- QMultiLineEdit Member List
- QMutex类
- qmutex.h包含文件
- QMutex成员列表
- qnamespace.h Include File
- qnetwork.h Example File
- QNetworkOperation Class
- QNetworkOperation Member List
- QNetworkProtocol Class
- qnetworkprotocol.h Include File
- QNetworkProtocol Member List
- qnp.h Include File
- QNPInstance Class
- QNPInstance Member List
- QNPlugin Class
- QNPlugin Member List
- QNPStream Class
- QNPStream Member List
- QNPWidget Class
- QNPWidget Member List
- QObject类
- QObjectCleanupHandler Class
- qobjectcleanuphandler.h Include File
- QObjectCleanupHandler Member List
- qobject.h包含文件
- QObjectList类
- qobjectlist.h包含文件
- QObjectListIt类
- QObjectListIt成员列表
- QObjectList成员列表
- QObject成员列表
- QPaintDevice类
- qpaintdevice.h包含文件
- QPaintDevice成员列表
- QPaintDeviceMetrics Class
- qpaintdevicemetrics.h Include File
- QPaintDeviceMetrics Member List
- QPainter类
- qpainter.h包含文件
- QPainter成员列表
- QPaintEvent Class
- QPaintEvent Member List
- QPair Class
- qpair.h Include File
- QPair Member List
- QPalette Class
- qpalette.h Include File
- QPalette Member List
- QPen Class
- qpen.h Include File
- QPen Member List
- QPicture Class
- qpicture.h Include File
- QPicture Member List
- QPixmap Class
- QPixmapCache Class
- qpixmapcache.h Include File
- QPixmapCache Member List
- qpixmap.h Include File
- QPixmap Member List
- QPlatinumStyle Class
- qplatinumstyle.h Include File
- QPlatinumStyle Member List
- QPNGImagePacker Class
- QPNGImagePacker Member List
- qpngio.h Include File
- QPoint类
- QPointArray Class
- qpointarray.h Include File
- QPointArray Member List
- qpoint.h包含文件
- QPoint成员列表
- QPopupMenu Class
- qpopupmenu.h Include File
- QPopupMenu Member List
- QPrinter Class
- qprinter.h Include File
- QPrinter Member List
- QProcess Class
- QProcess Examples
- qprocess.h Include File
- QProcess Member List
- QProgressBar Class
- qprogressbar.h Include File
- QProgressBar Member List
- QProgressDialog类
- qprogressdialog.h包含文件
- QProgressDialog成员列表
- QPtrCollection类
- qptrcollection.h包含文件
- QPtrCollection成员列表
- QPtrDict Class
- qptrdict.h Include File
- QPtrDictIterator Class
- QPtrDictIterator Member List
- QPtrDict Member List
- QPtrList类
- qptrlist.h包含文件
- QPtrListIterator类
- QPtrListIterator成员列表
- QPtrList成员列表
- QPtrQueue类
- qptrqueue.h包含文件
- QPtrQueue成员列表
- QPtrStack类
- qptrstack.h包含文件
- QPtrStack成员列表
- QPtrVector类
- qptrvector.h包含文件
- QPtrVector成员列表
- QPushButton类
- qpushbutton.h包含文件
- QPushButton成员列表
- QRadioButton Class
- qradiobutton.h Include File
- QRadioButton Member List
- QRangeControl类
- qrangecontrol.h包含文件
- QRangeControld成员列表
- QRect类
- qrect.h包含文件
- QRect成员列表
- QRegExp Class
- qregexp.h Include File
- QRegExp Member List
- QRegExpValidator Class
- QRegExpValidator Member List
- QRegion Class
- qregion.h Include File
- QRegion Member List
- QResizeEvent Class
- QResizeEvent Member List
- qrtlcodec.h Include File
- QScreen Class
- QScreen Member List
- QScrollBar类
- qscrollbar.h包含文件
- QScrollBar成员列表
- QScrollView类
- qscrollview.h包含文件
- QScrollView成员列表
- QSemaphore类
- qsemaphore.h包含文件
- QSemaphore成员列表
- QServerSocket Class
- qserversocket.h Include File
- QServerSocket Member List
- QSessionManager Class
- qsessionmanager.h Include File
- QSessionManager Member List
- QSettings Class
- qsettings.h Include File
- QSettings Member List
- QSGIStyle Class
- qsgistyle.h Include File
- QSGIStyle Member List
- QShowEvent Class
- QShowEvent Member List
- QSignal Class
- qsignal.h Include File
- QSignalMapper Class
- qsignalmapper.h Include File
- QSignalMapper Member List
- QSignal Member List
- QSimpleRichText Class
- qsimplerichtext.h Include File
- QSimpleRichText Member List
- QSize类
- QSizeGrip Class
- qsizegrip.h Include File
- QSizeGrip Member List
- qsize.h包含文件
- QSize成员列表
- QSizePolicy Class
- qsizepolicy.h Include File
- QSizePolicy Member List
- QSjisCodec Class
- qsjiscodec.h Include File
- QSjisCodec Member List
- QSlider Class
- qslider.h Include File
- QSlider Member List
- QSocket类
- QSocketDevice Class
- qsocketdevice.h Include File
- QSocketDevice Member List
- qsocket.h包含文件
- QSocket成员列表
- QSocketNotifier Class
- qsocketnotifier.h Include File
- QSocketNotifier Member List
- QSortedList Class
- qsortedlist.h Include File
- QSortedList Member List
- QSound类
- qsound.h包含文件
- QSound成员列表
- QSpacerItem Class
- QSpacerItem Member List
- QSpinBox Class
- qspinbox.h Include File
- QSpinBox Member List
- QSplitter Class
- qsplitter.h Include File
- QSplitter Member List
- QSql类
- QSqlCursor Class
- qsqlcursor.h Include File
- QSqlCursor Member List
- QSqlDatabase Class
- qsqldatabase.h Include File
- QSqlDatabase Member List
- QSqlDriver Class
- qsqldriver.h Include File
- QSqlDriver Member List
- QSqlDriverPlugin Class
- qsqldriverplugin.h Include File
- QSqlDriverPlugin Member List
- QSqlEditorFactory Class
- qsqleditorfactory.h Include File
- QSqlEditorFactory Member List
- QSqlError Class
- qsqlerror.h Include File
- QSqlError Member List
- QSqlField Class
- qsqlfield.h Include File
- QSqlFieldInfo Class
- QSqlFieldInfo Member List
- QSqlField Member List
- QSqlForm Class
- qsqlform.h Include File
- QSqlForm Member List
- qsql.h包含文件
- QSqlIndex Class
- qsqlindex.h Include File
- QSqlIndex Member List
- QSql成员列表
- QSqlPropertyMap Class
- qsqlpropertymap.h Include File
- QSqlPropertyMap Member List
- QSqlQuery类
- qsqlquery.h 包含文件
- QSqlQuery成员列表
- QSqlRecord Class
- qsqlrecord.h Include File
- QSqlRecordInfo Class
- QSqlRecordInfo Member List
- QSqlRecord Member List
- QSqlResult Class
- qsqlresult.h Include File
- QSqlResult Member List
- QStatusBar类
- qstatusbar.h包含文件
- QStatusBar成员列表
- QStoredDrag Class
- QStoredDrag Member List
- QStrIList Class
- QStrIList Member List
- QString类
- qstring.h包含文件
- QStringList Class
- qstringlist.h Include File
- QStringList Member List
- QString成员列表
- QStrList Class
- qstrlist.h Include File
- QStrListIterator Class
- QStrListIterator Member List
- QStrList Member List
- QStyle Class
- QStyleFactory Class
- qstylefactory.h Include File
- QStyleFactory Member List
- qstyle.h Include File
- QStyle Member List
- QStyleOption Class
- QStyleOption Member List
- QStylePlugin Class
- qstyleplugin.h Include File
- QStylePlugin Member List
- QStyleSheet Class
- qstylesheet.h Include File
- QStyleSheetItem Class
- QStyleSheetItem Member List
- QStyleSheet Member List
- Qt类
- QTab Class
- QTabBar Class
- qtabbar.h Include File
- QTabBar Member List
- QTabDialog类
- qtabdialog.h包含文件
- QTabDialog成员列表
- QTable类
- qtable.h包含文件
- QTableItem类
- QTableItem成员列表
- QTable成员列表
- QTableSelection类
- QTableSelection成员列表
- QTabletEvent Class
- QTabletEvent Member List
- QTab Member List
- QTabWidget Class
- qtabwidget.h Include File
- QTabWidget Member List
- QTextBrowser Class
- qtextbrowser.h Include File
- QTextBrowser Member List
- QTextCodec Class
- qtextcodec.h Include File
- QTextCodec Member List
- QTextCodecPlugin Class
- qtextcodecplugin.h Include File
- QTextCodecPlugin Member List
- QTextDecoder Class
- QTextDecoder Member List
- QTextDrag Class
- QTextDrag Member List
- QTextEdit类
- qtextedit.h包含文件
- QTextEdit成员列表
- QTextEncoder Class
- QTextEncoder Member List
- QTextIStream类
- QTextIStream成员列表
- QTextOStream类
- QTextOStream成员列表
- QTextStream类
- qtextstream.h包含文件
- QTextStream成员列表
- QTextView Class
- qtextview.h Include File
- QTextView Member List
- QThread类
- qthread.h包含文件
- QThread成员列表
- Display Images in Qt-supported Formats
- QTime类
- QTimeEdit Class
- QTimeEdit Member List
- QTime成员列表
- QTimer类
- QTimerEvent类
- QTimerEvent成员列表
- qtimer.h包含文件
- QTimer成员列表
- Qt模板库类
- Qt Member List
- QtMultiLineEdit Class
- qtmultilineedit.h Include File
- QtMultiLineEdit Member List
- QToolBar类
- qtoolbar.h包含文件
- QToolBar成员列表
- QToolButton类
- qtoolbutton.h包含文件
- QToolButton成员列表
- QToolTip Class
- QToolTipGroup Class
- QToolTipGroup Member List
- qtooltip.h Include File
- QToolTip Member List
- QTranslator Class
- qtranslator.h Include File
- QTranslator Member List
- QTranslatorMessage Class
- QTranslatorMessage Member List
- QTsciiCodec Class
- qtsciicodec.h Include File
- QTsciiCodec Member List
- QtTableView Class
- qttableview.h Include File
- QtTableView Member List
- Qt模板库
- QUriDrag Class
- QUriDrag Member List
- QUrl Class
- qurl.h Include File
- QUrlInfo Class
- qurlinfo.h Include File
- QUrlInfo Member List
- QUrl Member List
- QUrlOperator Class
- qurloperator.h Include File
- QUrlOperator Member List
- QValidator类
- qvalidator.h包含文件
- QValidator成员列表
- QVariant Class
- qvariant.h Include File
- QVariant Member List
- QVBox Class
- qvbox.h Include File
- QVBoxLayout Class
- QVBoxLayout Member List
- QVBox Member List
- QVButtonGroup类
- qvbuttongroup.h包含文件
- QVButtonGroup成员列表
- QVGroupBox类
- qvgroupbox.h包含文件
- QVGroupBox成员列表
- QWaitCondition类
- qwaitcondition.h包含文件
- QWaitCondition成员列表
- Simple HTML Browser
- QWhatsThis类
- qwhatsthis.h包含文件
- QWhatsThis成员列表
- QWheelEvent Class
- QWheelEvent Member List
- QWidget类
- QWidgetFactory Class
- qwidgetfactory.h Include File
- QWidgetFactory Member List
- qwidget.h包含文件
- QWidgetItem Class
- QWidgetItem Member List
- QWidget成员列表
- QWidgetPlugin Class
- qwidgetplugin.h Include File
- QWidgetPlugin Member List
- QWidgetStack类
- qwidgetstack.h包含文件
- QWidgetStack成员列表
- qwindowdefs.h Include File
- QWindowsMime Class
- QWindowsMime Member List
- QWindowsStyle Class
- qwindowsstyle.h Include File
- QWindowsStyle Member List
- qwindowsystem_qws.h Include File
- QWizard类
- qwizard.h包含文件
- QWizard成员列表
- QWMatrix Class
- qwmatrix.h Include File
- QWMatrix Member List
- QWorkspace类
- qworkspace.h包含文件
- QWorkspace成员列表
- Qt/Embedded
- QWSDecoration Class
- qwsdecoration_qws.h Include File
- QWSDecoration Member List
- QWSKeyboardHandler Class
- QWSKeyboardHandler Member List
- qwsmouse_qws.h Include File
- QWSMouseHandler Class
- QWSMouseHandler Member List
- QWSServer Class
- QWSServer Member List
- QWSWindow Class
- QWSWindow Member List
- QXmlAttributes Class
- QXmlAttributes Member List
- QXmlContentHandler Class
- QXmlContentHandler Member List
- QXmlDeclHandler Class
- QXmlDeclHandler Member List
- QXmlDefaultHandler Class
- QXmlDefaultHandler Member List
- QXmlDTDHandler Class
- QXmlDTDHandler Member List
- QXmlEntityResolver Class
- QXmlEntityResolver Member List
- QXmlErrorHandler Class
- QXmlErrorHandler Member List
- qxml.h Include File
- QXmlInputSource Class
- QXmlInputSource Member List
- QXmlLexicalHandler Class
- QXmlLexicalHandler Member List
- QXmlLocator Class
- QXmlLocator Member List
- QXmlNamespaceSupport Class
- QXmlNamespaceSupport Member List
- QXmlParseException Class
- QXmlParseException Member List
- QXmlReader Class
- QXmlSimpleReader Class
- QXmlSimpleReader Member List
- QXtApplication Class
- QXtApplication Member List
- qxt.h Include File
- QXtWidget Class
- QXtWidget Member List
- Range controls
- Richtext
- Rot13
- Simple Painting Application
- Qt的文本引擎
- Scrollview
- Session Management
- Implicitly and Explicitly Shared Classes
- Shared Classes
- Show Image
- Drag and Drop (Simple)
- Walkthrough: A Simple Application
- Walkthrough: A Simple Application with Actions
- A Complete Application Window
- A simple demonstration of QFont member functions
- Walkthrough: A simple QFont demonstration
- 小表格样例
- Sound Example
- Splitter
- SQL Module - Drivers
- Qt SQL Examples
- sql/overview/basicbrowsing2/main.cpp Example File
- sql/overview/basicbrowsing/main.cpp Example File
- sql/overview/basicdatamanip/main.cpp Example File
- sql/overview/connect1/main.cpp Example File
- sql/overview/create_connections/main.cpp Example File
- sql/overview/custom1/main.cpp Example File
- sql/overview/custom1/main.h Example File
- sql/overview/del/main.cpp Example File
- sql/overview/extract/main.cpp Example File
- sql/overview/form1/main.cpp Example File
- sql/overview/form2/main.h Example File
- sql/overview/insert/main.cpp Example File
- sql/overview/navigating/main.cpp Example File
- sql/overview/order1/main.cpp Example File
- sql/overview/order2/main.cpp Example File
- sql/overview/retrieve1/main.cpp Example File
- sql/overview/retrieve2/main.cpp Example File
- sql/overview/subclass1/main.cpp Example File
- sql/overview/subclass2/main.cpp Example File
- sql/overview/subclass2/main.h Example File
- sql/overview/subclass3/main.cpp Example File
- sql/overview/subclass3/main.h Example File
- sql/overview/subclass4/main.cpp Example File
- sql/overview/subclass4/main.h Example File
- sql/overview/subclass5/main.cpp Example File
- sql/overview/subclass5/main.h Example File
- sql/overview/table1/main.cpp Example File
- sql/overview/table2/main.cpp Example File
- sql/overview/table3/main.cpp Example File
- sql/overview/table3/main.h Example File
- sql/overview/table4/main.cpp Example File
- sql/overview/table4/main.h Example File
- sql/overview/update/main.cpp Example File
- SQL Table
- 表格样例
- t10/cannon.cpp Example File
- t10/cannon.h Example File
- t10/lcdrange.cpp Example File
- t10/lcdrange.h Example File
- t10/main.cpp Example File
- t11/cannon.cpp Example File
- t11/cannon.h Example File
- t11/lcdrange.cpp Example File
- t11/lcdrange.h Example File
- t11/main.cpp Example File
- t12/cannon.cpp Example File
- t12/cannon.h Example File
- t12/lcdrange.cpp Example File
- t12/lcdrange.h Example File
- t12/main.cpp Example File
- t13/cannon.cpp Example File
- t13/cannon.h Example File
- t13/gamebrd.cpp Example File
- t13/gamebrd.h Example File
- t13/lcdrange.cpp Example File
- t13/lcdrange.h Example File
- t13/main.cpp Example File
- t14/cannon.cpp Example File
- t14/cannon.h Example File
- t14/gamebrd.cpp Example File
- t14/gamebrd.h Example File
- t14/lcdrange.cpp Example File
- t14/lcdrange.h Example File
- t14/main.cpp Example File
- t7/lcdrange.cpp Example File
- t7/lcdrange.h Example File
- t7/main.cpp Example File
- t8/cannon.cpp Example File
- t8/cannon.h Example File
- t8/lcdrange.cpp Example File
- t8/lcdrange.h Example File
- t8/main.cpp Example File
- t9/cannon.cpp Example File
- t9/cannon.h Example File
- t9/lcdrange.cpp Example File
- t9/lcdrange.h Example File
- t9/main.cpp Example File
- Tabdialog
- table/bigtable/main.cpp Example File
- 表格例程
- Tablet Example
- A tiny SAX2 parser
- Demonstration of SAX2 features
- 为什么Qt不用模板来实现信号和槽?
- Tetrix
- Text Related Classes
- Text Edit Example
- Themes (Styles)
- 线程
- Tic Tac Toe
- 时间和日期
- 定时器
- A Tiny Example Featuring a Toggle Action
- Non-GUI Classes
- Advanced use of tool tips
- Trivial Example
- Qt教程一 —— 第一章:Hello, World!
- Qt教程一 —— 第二章:调用退出
- Qt教程一 —— 第三章:家庭价值
- Qt教程一 —— 第四章:使用窗口部件
- Qt教程一 —— 第五章:组装积木
- Qt教程一 —— 第六章:组装丰富的积木!
- Qt教程一 —— 第七章:一个事物领导另一个
- Qt教程一 —— 第八章:准备战斗
- Qt教程一 —— 第九章:你可以使用加农炮了
- Qt教程一 —— 第十章:像丝一样滑
- Qt教程一 —— 第十一章:给它一个炮弹
- Qt教程一 —— 第十一章:悬在空中的砖
- Qt教程一 —— 第十三章:游戏结束
- Qt教程一 —— 第十四章:面对墙壁
- 介绍
- 大图片
- 数据元素
- 主体很容易
- 实现图形用户界面
- 画布控制
- 文件处理
- 获得数据
- 设置选项
- 项目文件
- 完成
- User Interface Compiler (uic)
- 关于Unicode
- Widgets Example
- Wizard
- wizard/wizard.cpp Example File
- wizard/wizard.h Example File
- Transformed Graphics Demo
- Qt XML Examples
- Walkthrough: Using SAX2 features with the Qt XML classes
- Walkthrough: How to use the Qt SAX2 classes
- XML
- Qt Xt/Motif Support Extension
- 适应2000年问题声明
QStyle Class
The QStyle class specifies the look and feel of a GUI. More...
#include <qstyle.h>
Inherits QObject.
Inherited by QCommonStyle.
List of all member functions.
Public Members
- QStyle ()
- virtual ~QStyle ()
- virtual void polish ( QWidget * )
- virtual void unPolish ( QWidget * )
- virtual void polish ( QApplication * )
- virtual void unPolish ( QApplication * )
- virtual void polish ( QPalette & )
- virtual void polishPopupMenu ( QPopupMenu * ) = 0
- virtual QRect itemRect ( QPainter*p, constQRect&r, intflags, boolenabled, constQPixmap*pixmap, constQString&text, intlen = -1 ) const
- virtual void drawItem ( QPainter*p, constQRect&r, intflags, constQColorGroup&g, boolenabled, constQPixmap*pixmap, constQString&text, intlen = -1, constQColor*penColor = 0 ) const
- enum PrimitiveElement { PE_ButtonCommand, PE_ButtonDefault, PE_ButtonBevel, PE_ButtonTool, PE_ButtonDropDown, PE_FocusRect, PE_ArrowUp, PE_ArrowDown, PE_ArrowRight, PE_ArrowLeft, PE_SpinWidgetUp, PE_SpinWidgetDown, PE_SpinWidgetPlus, PE_SpinWidgetMinus, PE_Indicator, PE_IndicatorMask, PE_ExclusiveIndicator, PE_ExclusiveIndicatorMask, PE_DockWindowHandle, PE_DockWindowSeparator, PE_DockWindowResizeHandle, PE_Splitter, PE_Panel, PE_PanelPopup, PE_PanelMenuBar, PE_PanelDockWindow, PE_TabBarBase, PE_HeaderSection, PE_HeaderArrow, PE_StatusBarSection, PE_GroupBoxFrame, PE_Separator, PE_SizeGrip, PE_CheckMark, PE_ScrollBarAddLine, PE_ScrollBarSubLine, PE_ScrollBarAddPage, PE_ScrollBarSubPage, PE_ScrollBarSlider, PE_ScrollBarFirst, PE_ScrollBarLast, PE_ProgressBarChunk, PE_PanelLineEdit, PE_PanelTabWidget, PE_WindowFrame, PE_CustomBase = 0xf000000 }
- enum StyleFlags { Style_Default = 0x00000000, Style_Enabled = 0x00000001, Style_Raised = 0x00000002, Style_Sunken = 0x00000004, Style_Off = 0x00000008, Style_NoChange = 0x00000010, Style_On = 0x00000020, Style_Down = 0x00000040, Style_Horizontal = 0x00000080, Style_HasFocus = 0x00000100, Style_Top = 0x00000200, Style_Bottom = 0x00000400, Style_FocusAtBorder = 0x00000800, Style_AutoRaise = 0x00001000, Style_MouseOver = 0x00002000, Style_Up = 0x00004000, Style_Selected = 0x00008000, Style_Active = 0x00010000, Style_ButtonDefault = 0x00020000 }
- virtual void drawPrimitive ( PrimitiveElementpe, QPainter*p, constQRect&r, constQColorGroup&cg, SFlagsflags = Style_Default, constQStyleOption&opt = QStyleOption::Default ) const = 0
- enum ControlElement { CE_PushButton, CE_PushButtonLabel, CE_CheckBox, CE_CheckBoxLabel, CE_RadioButton, CE_RadioButtonLabel, CE_TabBarTab, CE_TabBarLabel, CE_ProgressBarGroove, CE_ProgressBarContents, CE_ProgressBarLabel, CE_PopupMenuItem, CE_MenuBarItem, CE_ToolButtonLabel, CE_PopupMenuScroller, CE_CustomBase = 0xf0000000 }
- virtual void drawControl ( ControlElementelement, QPainter*p, constQWidget*widget, constQRect&r, constQColorGroup&cg, SFlagshow = Style_Default, constQStyleOption&opt = QStyleOption::Default ) const = 0
- virtual void drawControlMask ( ControlElementelement, QPainter*p, constQWidget*widget, constQRect&r, constQStyleOption&opt = QStyleOption::Default ) const = 0
- enum SubRect { SR_PushButtonContents, SR_PushButtonFocusRect, SR_CheckBoxIndicator, SR_CheckBoxContents, SR_CheckBoxFocusRect, SR_RadioButtonIndicator, SR_RadioButtonContents, SR_RadioButtonFocusRect, SR_ComboBoxFocusRect, SR_SliderFocusRect, SR_DockWindowHandleRect, SR_ProgressBarGroove, SR_ProgressBarContents, SR_ProgressBarLabel, SR_ToolButtonContents, SR_CustomBase = 0xf0000000 }
- virtual QRect subRect ( SubRectsubrect, constQWidget*widget ) const = 0
- enum ComplexControl { CC_SpinWidget, CC_ComboBox, CC_ScrollBar, CC_Slider, CC_ToolButton, CC_TitleBar, CC_ListView, CC_CustomBase = 0xf0000000 }
- enum SubControl { SC_None = 0x00000000, SC_ScrollBarAddLine = 0x00000001, SC_ScrollBarSubLine = 0x00000002, SC_ScrollBarAddPage = 0x00000004, SC_ScrollBarSubPage = 0x00000008, SC_ScrollBarFirst = 0x00000010, SC_ScrollBarLast = 0x00000020, SC_ScrollBarSlider = 0x00000040, SC_ScrollBarGroove = 0x00000080, SC_SpinWidgetUp = 0x00000001, SC_SpinWidgetDown = 0x00000002, SC_SpinWidgetFrame = 0x00000004, SC_SpinWidgetEditField = 0x00000008, SC_SpinWidgetButtonField = 0x00000010, SC_ComboBoxFrame = 0x00000001, SC_ComboBoxEditField = 0x00000002, SC_ComboBoxArrow = 0x00000004, SC_SliderGroove = 0x00000001, SC_SliderHandle = 0x00000002, SC_SliderTickmarks = 0x00000004, SC_ToolButton = 0x00000001, SC_ToolButtonMenu = 0x00000002, SC_TitleBarLabel = 0x00000001, SC_TitleBarSysMenu = 0x00000002, SC_TitleBarMinButton = 0x00000004, SC_TitleBarMaxButton = 0x00000008, SC_TitleBarCloseButton = 0x00000010, SC_TitleBarNormalButton = 0x00000020, SC_TitleBarShadeButton = 0x00000040, SC_TitleBarUnshadeButton = 0x00000080, SC_ListView = 0x00000001, SC_ListViewBranch = 0x00000002, SC_ListViewExpand = 0x00000004, SC_All = 0xffffffff }
- virtual void drawComplexControl ( ComplexControlcontrol, QPainter*p, constQWidget*widget, constQRect&r, constQColorGroup&cg, SFlagshow = Style_Default, SCFlagssub = SC_All, SCFlagssubActive = SC_None, constQStyleOption&opt = QStyleOption::Default ) const = 0
- virtual void drawComplexControlMask ( ComplexControlcontrol, QPainter*p, constQWidget*widget, constQRect&r, constQStyleOption&opt = QStyleOption::Default ) const = 0
- virtual QRect querySubControlMetrics ( ComplexControlcontrol, constQWidget*widget, SubControlsubcontrol, constQStyleOption&opt = QStyleOption::Default ) const = 0
- virtual SubControl querySubControl ( ComplexControlcontrol, constQWidget*widget, constQPoint&pos, constQStyleOption&opt = QStyleOption::Default ) const = 0
- enum PixelMetric { PM_ButtonMargin, PM_ButtonDefaultIndicator, PM_MenuButtonIndicator, PM_ButtonShiftHorizontal, PM_ButtonShiftVertical, PM_DefaultFrameWidth, PM_SpinBoxFrameWidth, PM_MaximumDragDistance, PM_ScrollBarExtent, PM_ScrollBarSliderMin, PM_SliderThickness, PM_SliderControlThickness, PM_SliderLength, PM_SliderTickmarkOffset, PM_SliderSpaceAvailable, PM_DockWindowSeparatorExtent, PM_DockWindowHandleExtent, PM_DockWindowFrameWidth, PM_MenuBarFrameWidth, PM_TabBarTabOverlap, PM_TabBarTabHSpace, PM_TabBarTabVSpace, PM_TabBarBaseHeight, PM_TabBarBaseOverlap, PM_ProgressBarChunkWidth, PM_SplitterWidth, PM_TitleBarHeight, PM_IndicatorWidth, PM_IndicatorHeight, PM_ExclusiveIndicatorWidth, PM_ExclusiveIndicatorHeight, PM_PopupMenuScrollerHeight, PM_CustomBase = 0xf0000000 }
- virtual int pixelMetric ( PixelMetricmetric, constQWidget*widget = 0 ) const = 0
- enum ContentsType { CT_PushButton, CT_CheckBox, CT_RadioButton, CT_ToolButton, CT_ComboBox, CT_Splitter, CT_DockWindow, CT_ProgressBar, CT_PopupMenuItem, CT_CustomBase = 0xf0000000 }
- virtual QSize sizeFromContents ( ContentsTypecontents, constQWidget*widget, constQSize&contentsSize, constQStyleOption&opt = QStyleOption::Default ) const = 0
- enum StyleHint { SH_EtchDisabledText, SH_GUIStyle, SH_ScrollBar_BackgroundMode, SH_ScrollBar_MiddleClickAbsolutePosition, SH_ScrollBar_ScrollWhenPointerLeavesControl, SH_TabBar_SelectMouseType, SH_TabBar_Alignment, SH_Header_ArrowAlignment, SH_Slider_SnapToValue, SH_Slider_SloppyKeyEvents, SH_ProgressDialog_CenterCancelButton, SH_ProgressDialog_TextLabelAlignment, SH_PrintDialog_RightAlignButtons, SH_MainWindow_SpaceBelowMenuBar, SH_FontDialog_SelectAssociatedText, SH_PopupMenu_AllowActiveAndDisabled, SH_PopupMenu_SpaceActivatesItem, SH_PopupMenu_SubMenuPopupDelay, SH_ScrollView_FrameOnlyAroundContents, SH_MenuBar_AltKeyNavigation, SH_ComboBox_ListMouseTracking, SH_PopupMenu_MouseTracking, SH_MenuBar_MouseTracking, SH_ItemView_ChangeHighlightOnFocus, SH_Widget_ShareActivation, SH_Workspace_FillSpaceOnMaximize, SH_ComboBox_Popup, SH_TitleBar_NoBorder, SH_ScrollBar_StopMouseOverSlider, SH_BlinkCursorWhenTextSelected, SH_RichText_FullWidthSelection, SH_PopupMenu_Scrollable, SH_CustomBase = 0xf0000000 }
- virtual int styleHint ( StyleHintstylehint, constQWidget*widget = 0, constQStyleOption&opt = QStyleOption::Default, QStyleHintReturn*returnData = 0 ) const = 0
- enum StylePixmap { SP_TitleBarMinButton, SP_TitleBarMaxButton, SP_TitleBarCloseButton, SP_TitleBarNormalButton, SP_TitleBarShadeButton, SP_TitleBarUnshadeButton, SP_DockWindowCloseButton, SP_MessageBoxInformation, SP_MessageBoxWarning, SP_MessageBoxCritical, SP_CustomBase = 0xf0000000 }
- virtual QPixmap stylePixmap ( StylePixmapstylepixmap, constQWidget*widget = 0, constQStyleOption&opt = QStyleOption::Default ) const = 0
- int defaultFrameWidth () const (obsolete)
- void tabbarMetrics ( constQWidget*t, int&hf, int&vf, int&ov ) const (obsolete)
- QSize scrollBarExtent () const (obsolete)
Static Public Members
- QRect visualRect ( constQRect&logical, constQWidget*w )
- QRect visualRect ( constQRect&logical, constQRect&bounding )
Detailed Description
The QStyle class specifies the look and feel of a GUI.A large number of GUI elements are common to many widgets. The QStyle class allows the look of these elements to be modified across all widgets that use the QStyle functions. It also provides two feel options: Motif and Windows.
Although it is not possible to fully enumerate the look of graphical elements and the feel of widgets in a GUI, QStyle provides a considerable amount of control and customisability.
In Qt 1.x the look and feel option for widgets was specified by a single value: the GUIStyle. Starting with Qt 2.0, this notion was expanded to allow the look to be specified by virtual drawing functions.
Derived classes may reimplement some or all of the drawing functions to modify the look of all widgets that use those functions.
Languages written from right to left (such as Arabic and Hebrew) usually also mirror the whole layout of widgets. If you design a style, you should take special care when drawing asymmetric elements to make sure that they also look correct in a mirrored layout. You can start your application with -reverse to check the mirrored layout. Also notice, that for a reversed layout, the light usually comes from top right instead of top left.
The actual reverse layout is performed automatically when possible. However, for the sake of flexibility, the translation cannot be performed everywhere. The documentation for each function in the QStyle API states whether the function expects/returns logical or screen coordinates. Using logical coordinates (in ComplexControls, for example) provides great flexibility in controlling the look of a widget. Use visualRect() when necessary to translate logical coordinates into screen coordinates for drawing.
In Qt versions prior to 3.0, if you wanted a low level route into changing the appearance of a widget, you would reimplement polish(). With the new 3.0 style engine the recommended approach is to reimplement the draw functions, for example drawItem(), drawPrimitive(), drawControl(), drawControlMask(), drawComplexControl() and drawComplexControlMask(). Each of these functions is called with a range of parameters that provide information that you can use to determine how to draw them, e.g. style flags, rectangle, color group, etc.
For information on changing elements of an existing style or creating your own style see the Style overview.
Styles can also be created as plugins.
See also Widget Appearance and Style.
Member Type Documentation
QStyle::ComplexControl
This enum represents a ComplexControl. ComplexControls have different behaviour depending upon where the user clicks on them or which keys are pressed.
- QStyle::CC_SpinWidget
- QStyle::CC_ComboBox
- QStyle::CC_ScrollBar
- QStyle::CC_Slider
- QStyle::CC_ToolButton
- QStyle::CC_TitleBar
- QStyle::CC_ListView
- QStyle::CC_CustomBase - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
See also SubControl and drawComplexControl().
QStyle::ContentsType
This enum represents a ContentsType. It is used to calculate sizes for the contents of various widgets.
- QStyle::CT_PushButton
- QStyle::CT_CheckBox
- QStyle::CT_RadioButton
- QStyle::CT_ToolButton
- QStyle::CT_ComboBox
- QStyle::CT_Splitter
- QStyle::CT_DockWindow
- QStyle::CT_ProgressBar
- QStyle::CT_PopupMenuItem
- QStyle::CT_CustomBase - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
See also sizeFromContents().
QStyle::ControlElement
This enum represents a ControlElement. A ControlElement is part of a widget that performs some action or displays information to the user.
- QStyle::CE_PushButton - the bevel and default indicator of a QPushButton.
- QStyle::CE_PushButtonLabel - the label (iconset with text or pixmap) of a QPushButton.
- QStyle::CE_CheckBox - the indicator of a QCheckBox.
- QStyle::CE_CheckBoxLabel - the label (text or pixmap) of a QCheckBox.
- QStyle::CE_RadioButton - the indicator of a QRadioButton.
- QStyle::CE_RadioButtonLabel - the label (text or pixmap) of a QRadioButton.
- QStyle::CE_TabBarTab - the tab within a QTabBar (a QTab).
- QStyle::CE_TabBarLabel - the label within a QTab.
- QStyle::CE_ProgressBarGroove - the groove where the progress indicator is drawn in a QProgressBar.
- QStyle::CE_ProgressBarContents - the progress indicator of a QProgressBar.
- QStyle::CE_ProgressBarLabel - the text label of a QProgressBar.
- QStyle::CE_PopupMenuItem - a menu item in a QPopupMenu.
- QStyle::CE_PopupMenuScroller - scrolling areas in a popumenu when the style supports scrolling.
- QStyle::CE_MenuBarItem - a menu item in a QMenuBar.
- QStyle::CE_ToolButtonLabel - a tool button's label.
- QStyle::CE_CustomBase - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
See also drawControl().
QStyle::PixelMetric
This enum represents a PixelMetric. A PixelMetric is a style dependent size represented as a single pixel value.
- QStyle::PM_ButtonMargin - amount of whitespace between pushbutton labels and the frame.
- QStyle::PM_ButtonDefaultIndicator - width of the default-button indicator frame.
- QStyle::PM_MenuButtonIndicator - width of the menu button indicator proportional to the widget height.
- QStyle::PM_ButtonShiftHorizontal - horizontal contents shift of a button when the button is down.
- QStyle::PM_ButtonShiftVertical - vertical contents shift of a button when the button is down.
- QStyle::PM_DefaultFrameWidth - default frame width, usually 2.
- QStyle::PM_SpinBoxFrameWidth - frame width of a spin box.
- QStyle::PM_MaximumDragDistance - Some feels require the scrollbar or other sliders to jump back to the original position when the mouse pointer is too far away while dragging. A value of -1 disables this behavior.
- QStyle::PM_ScrollBarExtent - width of a vertical scrollbar and the height of a horizontal scrollbar.
- QStyle::PM_ScrollBarSliderMin - the minimum height of a vertical scrollbar's slider and the minimum width of a horiztonal scrollbar slider.
- QStyle::PM_SliderThickness - total slider thickness.
- QStyle::PM_SliderControlThickness - thickness of the slider handle.
- QStyle::PM_SliderLength - length of the slider.
- QStyle::PM_SliderTickmarkOffset - the offset between the tickmarks and the slider.
- QStyle::PM_SliderSpaceAvailable - the available space for the slider to move.
- QStyle::PM_DockWindowSeparatorExtent - width of a separator in a horiztonal dock window and the height of a separator in a vertical dock window.
- QStyle::PM_DockWindowHandleExtent - width of the handle in a horizontal dock window and the height of the handle in a vertical dock window.
- QStyle::PM_DockWindowFrameWidth - frame width of a dock window.
- QStyle::PM_MenuBarFrameWidth - frame width of a menubar.
- QStyle::PM_TabBarTabOverlap - number of pixels the tabs should overlap.
- QStyle::PM_TabBarTabHSpace - extra space added to the tab width.
- QStyle::PM_TabBarTabVSpace - extra space added to the tab height.
- QStyle::PM_TabBarBaseHeight - height of the area between the tab bar and the tab pages.
- QStyle::PM_TabBarBaseOverlap - number of pixels the tab bar overlaps the tab bar base.
- QStyle::PM_ProgressBarChunkWidth - width of a chunk in a progress bar indicator.
- QStyle::PM_SplitterWidth - width of a splitter.
- QStyle::PM_TitleBarHeight - height of the title bar.
- QStyle::PM_IndicatorWidth - width of a check box indicator.
- QStyle::PM_IndicatorHeight - height of a checkbox indicator.
- QStyle::PM_ExclusiveIndicatorWidth - width of a radio button indicator.
- QStyle::PM_ExclusiveIndicatorHeight - height of a radio button indicator.
- QStyle::PM_PopupMenuScrollerHeight - height of the scroller area in a popupmenu.
- QStyle::PM_CustomBase - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
See also pixelMetric().
QStyle::PrimitiveElement
This enum represents the PrimitiveElements of a style. A PrimitiveElement is a common GUI element, such as a checkbox indicator or pushbutton bevel.
- QStyle::PE_ButtonCommand - button used to initiate an action, for example, a QPushButton.
- QStyle::PE_ButtonDefault - this button is the default button, e.g. in a dialog.
- QStyle::PE_ButtonBevel - generic button bevel.
- QStyle::PE_ButtonTool - tool button, for example, a QToolButton.
- QStyle::PE_ButtonDropDown - drop down button, for example, a tool button that displays a popup menu, for example, QPopupMenu.
- QStyle::PE_FocusRect - generic focus indicator.
- QStyle::PE_ArrowUp - up arrow.
- QStyle::PE_ArrowDown - down arrow.
- QStyle::PE_ArrowRight - right arrow.
- QStyle::PE_ArrowLeft - left arrow.
- QStyle::PE_SpinWidgetUp - up symbol for a spin widget, for example a QSpinBox.
- QStyle::PE_SpinWidgetDown - down symbol for a spin widget.
- QStyle::PE_SpinWidgetPlus - increase symbol for a spin widget.
- QStyle::PE_SpinWidgetMinus - decrease symbol for a spin widget.
- QStyle::PE_Indicator - on/off indicator, for example, a QCheckBox.
- QStyle::PE_IndicatorMask - bitmap mask for an indicator.
- QStyle::PE_ExclusiveIndicator - exclusive on/off indicator, for example, a QRadioButton.
- QStyle::PE_ExclusiveIndicatorMask - bitmap mask for an exclusive indicator.
- QStyle::PE_DockWindowHandle - tear off handle for dock windows and toolbars, for example QDockWindows and QToolBars.
- QStyle::PE_DockWindowSeparator - item separator for dock window and toolbar contents.
- QStyle::PE_DockWindowResizeHandle - resize handle for dock windows.
- QStyle::PE_Splitter - splitter handle; see also QSplitter.
- QStyle::PE_Panel - generic panel frame; see also QFrame.
- QStyle::PE_PanelPopup - panel frame for popup windows/menus; see also QPopupMenu.
- QStyle::PE_PanelMenuBar - panel frame for menu bars.
- QStyle::PE_PanelDockWindow - panel frame for dock windows and toolbars.
- QStyle::PE_PanelTabWidget - panel frame for tab widgets.
- QStyle::PE_PanelLineEdit - panel frame for line edits.
- QStyle::PE_TabBarBase - area below tabs in a tab widget, for example, QTab.
- QStyle::PE_HeaderSection - section of a list or table header; see also QHeader.
- QStyle::PE_HeaderArrow - arrow used to indicate sorting on a list or table header
- QStyle::PE_StatusBarSection - section of a status bar; see also QStatusBar.
- QStyle::PE_GroupBoxFrame - frame around a group box; see also QGroupBox.
- QStyle::PE_WindowFrame - frame around a MDI or docking window
- QStyle::PE_Separator - generic separator.
- QStyle::PE_SizeGrip - window resize handle; see also QSizeGrip.
- QStyle::PE_CheckMark - generic check mark; see also QCheckBox.
- QStyle::PE_ScrollBarAddLine - scrollbar line increase indicator (i.e. scroll down); see also QScrollBar.
- QStyle::PE_ScrollBarSubLine - scrollbar line decrease indicator (i.e. scroll up).
- QStyle::PE_ScrollBarAddPage - scolllbar page increase indicator (i.e. page down).
- QStyle::PE_ScrollBarSubPage - scrollbar page decrease indicator (i.e. page up).
- QStyle::PE_ScrollBarSlider - scrollbar slider
- QStyle::PE_ScrollBarFirst - scrollbar first line indicator (i.e. home).
- QStyle::PE_ScrollBarLast - scrollbar last line indicator (i.e. end).
- QStyle::PE_ProgressBarChunk - section of a progress bar indicator; see also QProgressBar.
- QStyle::PE_CustomBase - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
See also drawPrimitive().
QStyle::StyleFlags
This enum represents flags for drawing PrimitiveElements. Not all primitives use all of these flags. Note that these flags may mean different things to different primitives. For an explanation of the relationship between primitives and their flags, as well as the different meanings of the flags, see the Style overview.
- QStyle::Style_Default
- QStyle::Style_Enabled
- QStyle::Style_Raised
- QStyle::Style_Sunken
- QStyle::Style_Off
- QStyle::Style_NoChange
- QStyle::Style_On
- QStyle::Style_Down
- QStyle::Style_Horizontal
- QStyle::Style_HasFocus
- QStyle::Style_Top
- QStyle::Style_Bottom
- QStyle::Style_FocusAtBorder
- QStyle::Style_AutoRaise
- QStyle::Style_MouseOver
- QStyle::Style_Up
- QStyle::Style_Selected
- QStyle::Style_HasFocus
- QStyle::Style_Active
- QStyle::Style_ButtonDefault
See also drawPrimitive().
QStyle::StyleHint
This enum represents a StyleHint. A StyleHint is a general look and/or feel hint.
- QStyle::SH_EtchDisabledText - disabled text is "etched" like Windows.
- QStyle::SH_GUIStyle - the GUI style to use.
- QStyle::SH_ScrollBar_BackgroundMode - the background mode for a QScrollBar. Possible values are any of those in the BackgroundMode enum.
- QStyle::SH_ScrollBar_MiddleClickAbsolutePosition - a boolean value. If TRUE, middle clicking on a scrollbar causes the slider to jump to that position. If FALSE, the middle clicking is ignored.
- QStyle::SH_ScrollBar_ScrollWhenPointerLeavesControl - a boolean value. If TRUE, when clicking a scrollbar SubControl, holding the mouse button down and moving the pointer outside the SubControl, the scrollbar continues to scroll. If FALSE, the scollbar stops scrolling when the pointer leaves the SubControl.
- QStyle::SH_TabBar_Alignment - the alignment for tabs in a QTabWidget. Possible values are Qt::AlignLeft, Qt::AlignCenter and Qt::AlignRight.
- QStyle::SH_Header_ArrowAlignment - the placement of the sorting indicator may appear in list or table headers. Possible values are Qt::Left or Qt::Right.
- QStyle::SH_Slider_SnapToValue - sliders snap to values while moving, like Windows
- QStyle::SH_Slider_SloppyKeyEvents - key presses handled in a sloppy manner, i.e. left on a vertical slider subtracts a line.
- QStyle::SH_ProgressDialog_CenterCancelButton - center button on progress dialogs, like Motif, otherwise right aligned.
- QStyle::SH_ProgressDialog_TextLabelAlignment - Qt::AlignmentFlags -- text label alignment in progress dialogs; Center on windows, Auto|VCenter otherwise.
- QStyle::SH_PrintDialog_RightAlignButtons - right align buttons in the print dialog, like Windows.
- QStyle::SH_MainWindow_SpaceBelowMenuBar - 1 or 2 pixel space between the menubar and the dockarea, like Windows.
- QStyle::SH_FontDialog_SelectAssociatedText - select the text in the line edit, or when selecting an item from the listbox, or when the line edit receives focus, like Windows.
- QStyle::SH_PopupMenu_AllowActiveAndDisabled - allows disabled menu items to be active.
- QStyle::SH_PopupMenu_SpaceActivatesItem - pressing Space activates the item, like Motif.
- QStyle::SH_PopupMenu_SubMenuPopupDelay - the number of milliseconds to wait before opening a submenu; 256 on windows, 96 on Motif.
- QStyle::SH_ScrollView_FrameOnlyAroundContents - whether scrollviews draw their frame only around contents (like Motif), or around contents, scrollbars and corner widgets (like Windows).
- QStyle::SH_MenuBar_AltKeyNavigation - menubars items are navigable by pressing Alt, followed by using the arrow keys to select the desired item.
- QStyle::SH_ComboBox_ListMouseTracking - mouse tracking in combobox dropdown lists.
- QStyle::SH_PopupMenu_MouseTracking - mouse tracking in popup menus.
- QStyle::SH_MenuBar_MouseTracking - mouse tracking in menubars.
- QStyle::SH_ItemView_ChangeHighlightOnFocus - gray out selected items when losing focus.
- QStyle::SH_Widget_ShareActivation - turn on sharing activation with floating modeless dialogs.
- QStyle::SH_TabBar_SelectMouseType - which type of mouse event should cause a tab to be selected.
- QStyle::SH_ComboBox_Popup - allows popups as a combobox dropdown menu.
- QStyle::SH_Workspace_FillSpaceOnMaximize - the workspace should maximize the client area.
- QStyle::SH_TitleBar_NoBorder - the titlebar has no border
- QStyle::SH_ScrollBar_StopMouseOverSlider - stops autorepeat when slider reaches mouse
- QStyle::SH_BlinkCursorWhenTextSelected - whether cursor should blink when text is selected
- QStyle::SH_RichText_FullWidthSelection - whether richtext selections should extend the full width of the document.
- QStyle::SH_PopupMenu_Scrollable - whether popupmenu's must support scrolling.
- QStyle::SH_CustomBase - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
See also styleHint().
QStyle::StylePixmap
This enum represents a StylePixmap. A StylePixmap is a pixmap that can follow some existing GUI style or guideline.
- QStyle::SP_TitleBarMinButton - minimize button on titlebars. For example, in a QWorkspace.
- QStyle::SP_TitleBarMaxButton - maximize button on titlebars.
- QStyle::SP_TitleBarCloseButton - close button on titlebars.
- QStyle::SP_TitleBarNormalButton - normal (restore) button on titlebars.
- QStyle::SP_TitleBarShadeButton - shade button on titlebars.
- QStyle::SP_TitleBarUnshadeButton - unshade button on titlebars.
- QStyle::SP_MessageBoxInformation - the 'information' icon.
- QStyle::SP_MessageBoxWarning - the 'warning' icon.
- QStyle::SP_MessageBoxCritical - the 'critical' icon.
- QStyle::SP_DockWindowCloseButton - close button on dock windows; see also QDockWindow.
- QStyle::SP_CustomBase - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
See also stylePixmap().
QStyle::SubControl
This enum represents a SubControl within a ComplexControl.
- QStyle::SC_None - special value that matches no other SubControl.
- QStyle::SC_ScrollBarAddLine - scrollbar add line (i.e. down/right arrow); see also QScrollbar.
- QStyle::SC_ScrollBarSubLine - scrollbar sub line (i.e. up/left arrow).
- QStyle::SC_ScrollBarAddPage - scrollbar add page (i.e. page down).
- QStyle::SC_ScrollBarSubPage - scrollbar sub page (i.e. page up).
- QStyle::SC_ScrollBarFirst - scrollbar first line (i.e. home).
- QStyle::SC_ScrollBarLast - scrollbar last line (i.e. end).
- QStyle::SC_ScrollBarSlider - scrollbar slider handle.
- QStyle::SC_ScrollBarGroove - special subcontrol which contains the area in which the slider handle may move.
- QStyle::SC_SpinWidgetUp - spinwidget up/increase; see also QSpinBox.
- QStyle::SC_SpinWidgetDown - spinwidget down/decrease.
- QStyle::SC_SpinWidgetFrame - spinwidget frame.
- QStyle::SC_SpinWidgetEditField - spinwidget edit field.
- QStyle::SC_SpinWidgetButtonField - spinwidget button field.
- QStyle::SC_ComboBoxEditField - combobox edit field; see also QComboBox.
- QStyle::SC_ComboBoxArrow - combobox arrow
- QStyle::SC_ComboBoxFrame - combobox frame
- QStyle::SC_SliderGroove - special subcontrol which contains the area in which the slider handle may move.
- QStyle::SC_SliderHandle - slider handle.
- QStyle::SC_SliderTickmarks - slider tickmarks.
- QStyle::SC_ToolButton - tool button; see also QToolbutton.
- QStyle::SC_ToolButtonMenu - subcontrol for opening a popup menu in a tool button; see also QPopupMenu.
- QStyle::SC_TitleBarSysMenu - system menu button (i.e. restore, close, etc.).
- QStyle::SC_TitleBarMinButton - minimize button.
- QStyle::SC_TitleBarMaxButton - maximize button.
- QStyle::SC_TitleBarCloseButton - close button.
- QStyle::SC_TitleBarLabel - window title label.
- QStyle::SC_TitleBarNormalButton - normal (restore) button.
- QStyle::SC_TitleBarShadeButton - shade button.
- QStyle::SC_TitleBarUnshadeButton - unshade button.
- QStyle::SC_ListView - the list view area.
- QStyle::SC_ListViewBranch - (internal)
- QStyle::SC_ListViewExpand - expand item (i.e. show/hide child items).
- QStyle::SC_All - special value that matches all SubControls.
See also ComplexControl.
QStyle::SubRect
This enum represents a sub-area of a widget. Style implementations would use these areas to draw the different parts of a widget.
- QStyle::SR_PushButtonContents - area containing the label (iconset with text or pixmap).
- QStyle::SR_PushButtonFocusRect - area for the focus rect (usually larger than the contents rect).
- QStyle::SR_CheckBoxIndicator - area for the state indicator (e.g. check mark).
- QStyle::SR_CheckBoxContents - area for the label (text or pixmap).
- QStyle::SR_CheckBoxFocusRect - area for the focus indicator.
- QStyle::SR_RadioButtonIndicator - area for the state indicator.
- QStyle::SR_RadioButtonContents - area for the label.
- QStyle::SR_RadioButtonFocusRect - area for the focus indicator.
- QStyle::SR_ComboBoxFocusRect - area for the focus indicator.
- QStyle::SR_SliderFocusRect - area for the focus indicator.
- QStyle::SR_DockWindowHandleRect - area for the tear-off handle.
- QStyle::SR_ProgressBarGroove - area for the groove.
- QStyle::SR_ProgressBarContents - area for the progress indicator.
- QStyle::SR_ProgressBarLabel - area for the text label.
- QStyle::SR_ToolButtonContents - area for the tool button's label.
- QStyle::SR_CustomBase - base value for custom ControlElements. All values above this are reserved for custom use. Therefore, custom values must be greater than this value.
See also subRect().
Member Function Documentation
QStyle::QStyle ()
Constructs a QStyle.QStyle::~QStyle () [virtual]
Destroys the style and frees all allocated resources.int QStyle::defaultFrameWidth () const
This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.void QStyle::drawComplexControl ( ComplexControlcontrol, QPainter*p, constQWidget*widget, constQRect&r, constQColorGroup&cg, SFlagshow = Style_Default, SCFlagssub = SC_All, SCFlagssubActive = SC_None, constQStyleOption&opt = QStyleOption::Default ) const [pure virtual]
Draws the ComplexControl control using the painter p in the area r. Colors are used from the color group cg. The sub argument specifies which SubControls to draw. Multiple SubControls can be OR'ed together. The subActive argument specifies which SubControl is active.
The rect r should be in logical coordinates. Reimplementations of this function should use visualRect() to change the logical coordinates into screen coordinates when using drawPrimitive() and drawControl().
The how argument is used to control how the ComplexControl is drawn. Multiple flags can OR'ed together. See the table below for an explanation of which flags are used with the various ComplexControls.
The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of control. The opt argument can be used to pass extra information required when drawing the ComplexControl. Note that opt may be the default value even for ComplexControls that can make use of the extra options. See the table below for the appropriate widget and opt usage:
ComplexControl & Widget Cast | Style Flags | Notes | Options | Notes |
---|---|---|---|---|
CC_SpinWidget(const QSpinWidget *) | Style_Enabled | Set if the spinwidget is enabled. | Unused. | |
Style_HasFocus | Set if the spinwidget has input focus. | |||
CC_ComboBox(const QComboBox *) | Style_Enabled | Set if the combobox is enabled. | Unused. | |
Style_HasFocus | Set if the combobox has input focus. | |||
CC_ScrollBar(const QScrollBar *) | Style_Enabled | Set if the scrollbar is enabled. | Unused. | |
Style_HasFocus | Set if the scrollbar has input focus. | |||
CC_Slider(const QSlider *) | Style_Enabled | Set if the slider is enabled. | Unused. | |
Style_HasFocus | Set if the slider has input focus. | |||
CC_ToolButton(const QToolButton *) | Style_Enabled | Set if the toolbutton is enabled. | QStyleOption ( ArrowType t )
| When the tool button only contains an arrow, t is the arrow's type. |
Style_HasFocus | Set if the toolbutton has input focus. | |||
Style_Down | Set if the toolbutton is down (ie. mouse button or space pressed). | |||
Style_On | Set if the toolbutton is a toggle button and is toggled on. | |||
Style_AutoRaise | Set if the toolbutton has auto-raise enabled. | |||
Style_Raised | Set if the button is not down, not on and doesn't contain the mouse when auto-raise is enabled. | |||
CC_TitleBar(const QWidget *) | Style_Enabled | Set if the titlebar is enabled. | Unused. | |
CC_ListView(const QListView *) | Style_Enabled | Set if the titlebar is enabled. | QStyleOption ( QListViewItem *item )
| item is the item that needs branches drawn |
See also ComplexControl and SubControl.
void QStyle::drawComplexControlMask ( ComplexControlcontrol, QPainter*p, constQWidget*widget, constQRect&r, constQStyleOption&opt = QStyleOption::Default ) const [pure virtual]
Draw a bitmask for the ComplexControl control using the painter p in the area r. See drawComplexControl() for an explanation of the use of the widget and opt arguments.
The rect r should be in logical coordinates. Reimplementations of this function should use visualRect() to change the logical corrdinates into screen coordinates when using drawPrimitive() and drawControl().
See also drawComplexControl() and ComplexControl.
void QStyle::drawControl ( ControlElementelement, QPainter*p, constQWidget*widget, constQRect&r, constQColorGroup&cg, SFlagshow = Style_Default, constQStyleOption&opt = QStyleOption::Default ) const [pure virtual]
Draws the ControlElement element using the painter p in the area r. Colors are used from the color group cg.
The rect r should be in screen coordinates.
The how argument is used to control how the ControlElement is drawn. Multiple flags can be OR'ed together. See the table below for an explanation of which flags are used with the various ControlElements.
The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of element. The opt argument can be used to pass extra information required when drawing the ControlElement. Note that opt may be the default value even for ControlElements that can make use of the extra options. See the table below for the appropriate widget and opt usage:
ControlElement & Widget Cast | Style Flags | Notes | Options | Notes |
---|---|---|---|---|
CE_PushButton(const QPushButton *) and CE_PushButtonLabel(const QPushButton *) | Style_Enabled | Set if the button is enabled. | Unused. | |
Style_HasFocus | Set if the button has input focus. | |||
Style_Raised | Set if the button is not down, not on and not flat. | |||
Style_On | Set if the button is a toggle button and toggled on. | |||
Style_Down | Set if the button is down (i.e., the mouse button or space bar is pressed on the button). | |||
Style_ButtonDefault | Set if the button is a default button. | |||
CE_CheckBox(const QCheckBox *) and CE_CheckBoxLabel(const QCheckBox *) | Style_Enabled | Set if the checkbox is enabled. | Unused. | |
Style_HasFocus | Set if the checkbox has input focus. | |||
Style_On | Set if the checkbox is checked. | |||
Style_Off | Set if the checkbox is not checked. | |||
Style_NoChange | Set if the checkbox is in the NoChange state. | |||
Style_Down | Set if the checkbox is down (i.e., the mouse button or space bar is pressed on the button). | |||
CE_RadioButton(const QRadioButton *) and CE_RadioButtonLabel(const QRadioButton *) | Style_Enabled | Set if the radiobutton is enabled. | Unused. | |
Style_HasFocus | Set if the radiobutton has input focus. | |||
Style_On | Set if the radiobutton is checked. | |||
Style_Off | Set if the radiobutton is not checked. | |||
Style_Down | Set if the radiobutton is down (i.e., the mouse button or space bar is pressed on the radiobutton). | |||
CE_TabBarTab(const QTabBar *) and CE_TabBarLabel(const QTabBar *) | Style_Enabled | Set if the tabbar and tab is enabled. | QStyleOption ( QTab *t )
| t is the QTab being drawn. |
Style_Selected | Set if the tab is the current tab. | |||
CE_ProgressBarGroove(const QProgressBar *) and CE_ProgressBarContents(const QProgressBar *) and CE_ProgressBarLabel(const QProgressBar *) | Style_Enabled | Set if the progressbar is enabled. | Unused. | |
Style_HasFocus | Set if the progressbar has input focus. | |||
CE_PopupMenuItem(const QPopupMenu *) | Style_Enabled | Set if the menuitem is enabled. | QStyleOption ( QMenuItem *mi, int tabwidth, int maxpmwidth )
| mi is the menu item being drawn. QMenuItem is currently an internal class. |
Style_Active | Set if the menuitem is the current item. | tabwidth is the width of the tab column where key accelerators are drawn. | ||
Style_Down | Set if the menuitem is down (i.e., the mouse button or space bar is pressed). | maxpmwidth is the maximum width of the check column where checkmarks and iconsets are drawn. | ||
CE_MenuBarItem(const QMenuBar *) | Style_Enabled | Set if the menuitem is enabled | QStyleOption ( QMenuItem *mi )
| mi is the menu item being drawn. |
Style_Active | Set if the menuitem is the current item. | |||
Style_Down | Set if the menuitem is down (i.e., a mouse button or the space bar is pressed). | |||
Style_HasFocus | Set if the menubar has input focus. | |||
CE_ToolButtonLabel(const QToolButton *) | Style_Enabled | Set if the toolbutton is enabled. | QStyleOption ( ArrowType t )
| When the tool button only contains an arrow, t is the arrow's type. |
Style_HasFocus | Set if the toolbutton has input focus. | |||
Style_Down | Set if the toolbutton is down (i.e., a mouse button or the space is pressed). | |||
Style_On | Set if the toolbutton is a toggle button and is toggled on. | |||
Style_AutoRaise | Set if the toolbutton has auto-raise enabled. | |||
Style_MouseOver | Set if the mouse pointer is over the toolbutton. | |||
Style_Raised | Set if the button is not down, not on and doesn't contain the mouse when auto-raise is enabled. |
See also ControlElement and StyleFlags.
void QStyle::drawControlMask ( ControlElementelement, QPainter*p, constQWidget*widget, constQRect&r, constQStyleOption&opt = QStyleOption::Default ) const [pure virtual]
Draw a bitmask for the ControlElement element using the painter p in the area r. See drawControl() for an explanation of the use of the widget and opt arguments.
The rect r should be in screen coordinates.
See also drawControl() and ControlElement.
void QStyle::drawItem ( QPainter*p, constQRect&r, intflags, constQColorGroup&g, boolenabled, constQPixmap*pixmap, constQString&text, intlen = -1, constQColor*penColor = 0 ) const [virtual]
Draws the text or pixmap in rectangle r using painter p and color group g. The pen color is specified with penColor. The enabled bool indicates whether or not the item is enabled; when reimplementing this bool should influence how the item is drawn. If len is -1 (the default) all the text is drawn; otherwise only the first len characters of text are drawn. The text is aligned and wrapped according to the alignment flags (see Qt::AlignmentFlags).By default, if both the text and the pixmap are not null, the pixmap is drawn and the text is ignored.
void QStyle::drawPrimitive ( PrimitiveElementpe, QPainter*p, constQRect&r, constQColorGroup&cg, SFlagsflags = Style_Default, constQStyleOption&opt = QStyleOption::Default ) const [pure virtual]
Draws the style PrimitiveElement pe using the painter p in the area r. Colors are used from the color group cg.
The rect r should be in screen coordinates.
The flags argument is used to control how the PrimitiveElement is drawn. Multiple flags can be OR'ed together.
For example, a pressed button would be drawn with the flags Style_Enabled and Style_Down.
The opt argument can be used to control how various PrimitiveElements are drawn. Note that opt may be the default value even for PrimitiveElements that make use of extra options. When opt is non-default, it is used as follows:
PrimitiveElement | Options | Notes |
---|---|---|
PE_FocusRect | QStyleOption ( const QColor & bg )
| bg is the background color on which the focus rect is being drawn. |
PE_Panel | QStyleOption ( int linewidth, int midlinewidth )
| linewidth is the line width for drawing the panel. |
midlinewidth is the mid-line width for drawing the panel. | ||
PE_PanelPopup | QStyleOption ( int linewidth, int midlinewidth )
| linewidth is the line width for drawing the panel. |
midlinewidth is the mid-line width for drawing the panel. | ||
PE_PanelMenuBar | QStyleOption ( int linewidth, int midlinewidth )
| linewidth is the line width for drawing the panel. |
midlinewidth is the mid-line width for drawing the panel. | ||
PE_PanelDockWindow | QStyleOption ( int linewidth, int midlinewidth )
| linewidth is the line width for drawing the panel. |
midlinewidth is the mid-line width for drawing the panel. | ||
PE_GroupBoxFrame | QStyleOption ( int linewidth, int midlinewidth, int shape, int shadow )
| linewidth is the line width for the group box. |
midlinewidth is the mid-line width for the group box. | ||
shape is the frame shape for the group box. | ||
shadow is the frame shadow for the group box. |
For all other PrimitiveElements, opt is unused.
See also StyleFlags.
Example: themes/wood.cpp.
QRect QStyle::itemRect ( QPainter*p, constQRect&r, intflags, boolenabled, constQPixmap*pixmap, constQString&text, intlen = -1 ) const [virtual]
Returns the appropriate area (see below) within rectangle r in which to draw the text or pixmap using painter p. If len is -1 (the default) all the text is drawn; otherwise only the first len characters of text are drawn. The text is aligned in accordance with the alignment flags (see Qt::AlignmentFlags). The enabled bool indicates whether or not the item is enabled.If r is larger than the area needed to render the text the rectangle that is returned will be offset within r in accordance with the alignment flags. For example if flags is AlignCenter the returned rectangle will be centered within r. If r is smaller than the area needed the rectangle that is returned will be larger than r (the smallest rectangle large enough to render the text or pixmap).
By default, if both the text and the pixmap are not null, the pixmap is drawn and the text is ignored.
int QStyle::pixelMetric ( PixelMetricmetric, constQWidget*widget = 0 ) const [pure virtual]
Returns the pixel metric for metric. The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of metric. Note that widget may be zero even for PixelMetrics that can make use of widget. See the table below for the appropriate widget casts:
PixelMetric | Widget Cast |
---|---|
PM_SliderControlThickness | (const QSlider *) |
PM_SliderLength | (const QSlider *) |
PM_SliderTickmarkOffset | (const QSlider *) |
PM_SliderSpaceAvailable | (const QSlider *) |
PM_TabBarTabOverlap | (const QTabBar *) |
PM_TabBarTabHSpace | (const QTabBar *) |
PM_TabBarTabVSpace | (const QTabBar *) |
PM_TabBarBaseHeight | (const QTabBar *) |
PM_TabBarBaseOverlap | (const QTabBar *) |
void QStyle::polish ( QWidget* ) [virtual]
Initializes the appearance of a widget.This function is called for every widget at some point after it has been fully created but just before it is shown the very first time.
Reasonable actions in this function might be to call QWidget::setBackgroundMode() for the widget. An example of highly unreasonable use would be setting the geometry! Reimplementing this function gives you a back-door through which you can change the appearance of a widget. With Qt 3.0's style engine you will rarely need to write your own polish(); instead reimplement drawItem(), drawPrimitive(), etc.
The QWidget::inherits() function may provide enough information to allow class-specific customizations. But be careful not to hard-code things too much because new QStyle subclasses are expected to work reasonably with all current and future widgets.
See also unPolish().
Examples: themes/metal.cpp and themes/wood.cpp.
void QStyle::polish ( QApplication* ) [virtual]
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.Late initialization of the QApplication object.
See also unPolish().
void QStyle::polish ( QPalette& ) [virtual]
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.The style may have certain requirements for color palettes. In this function it has the chance to change the palette according to these requirements.
See also QPalette and QApplication::setPalette().
void QStyle::polishPopupMenu ( QPopupMenu* ) [pure virtual]
Polishes the popup menu according to the GUI style. This usually means setting the mouse tracking (QPopupMenu::setMouseTracking()) and whether the menu is checkable by default (QPopupMenu::setCheckable()).SubControl QStyle::querySubControl ( ComplexControlcontrol, constQWidget*widget, constQPoint&pos, constQStyleOption&opt = QStyleOption::Default ) const [pure virtual]
Returns the SubControl for widget at the point pos. The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of control. The opt argument can be used to pass extra information required when drawing the ComplexControl. Note that opt may be the default value even for ComplexControls that can make use of the extra options. See drawComplexControl() for an explanation of the widget and opt arguments.
Note that pos is passed in screen coordinates. When using querySubControlMetrics() to check for hits and misses, use visualRect() to change the logical coordinates into screen coordinates.
See also drawComplexControl(), ComplexControl, SubControl and querySubControlMetrics().
QRect QStyle::querySubControlMetrics ( ComplexControlcontrol, constQWidget*widget, SubControlsubcontrol, constQStyleOption&opt = QStyleOption::Default ) const [pure virtual]
Returns the rect for the SubControl subcontrol for widget in logical coordinates.
The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of control. The opt argument can be used to pass extra information required when drawing the ComplexControl. Note that opt may be the default value even for ComplexControls that can make use of the extra options. See drawComplexControl() for an explanation of the widget and opt arguments.
See also drawComplexControl(), ComplexControl and SubControl.
QSize QStyle::scrollBarExtent () const
This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.QSize QStyle::sizeFromContents ( ContentsTypecontents, constQWidget*widget, constQSize&contentsSize, constQStyleOption&opt = QStyleOption::Default ) const [pure virtual]
Returns the size of widget based on the contents size contentsSize.
The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of contents. The opt argument can be used to pass extra information required when calculating the size. Note that opt may be the default value even for ContentsTypes that can make use of the extra options. See the table below for the appropriate widget and opt usage:
ContentsType | Widget Cast | Options | Notes |
---|---|---|---|
CT_PushButton | (const QPushButton *) | Unused. | |
CT_CheckBox | (const QCheckBox *) | Unused. | |
CT_RadioButton | (const QRadioButton *) | Unused. | |
CT_ToolButton | (const QToolButton *) | Unused. | |
CT_ComboBox | (const QComboBox *) | Unused. | |
CT_Splitter | (const QSplitter *) | Unused. | |
CT_DockWindow | (const QDockWindow *) | Unused. | |
CT_ProgressBar | (const QProgressBar *) | Unused. | |
CT_PopupMenuItem | (const QPopupMenu *) | QStyleOption ( QMenuItem *mi )
| mi is the menu item to use when calculating the size. QMenuItem is currently an internal class. |
int QStyle::styleHint ( StyleHintstylehint, constQWidget*widget = 0, constQStyleOption&opt = QStyleOption::Default, QStyleHintReturn*returnData = 0 ) const [pure virtual]
Returns the style hint stylehint for widget. Currently, widget, opt, and returnData are unused; they're included to allow for future enhancements.
For an explanation of the return value see StyleHint.
QPixmap QStyle::stylePixmap ( StylePixmapstylepixmap, constQWidget*widget = 0, constQStyleOption&opt = QStyleOption::Default ) const [pure virtual]
Returns a pixmap for stylepixmap.
The opt argument can be used to pass extra information required when drawing the ControlElement. Note that opt may be the default value even for StylePixmaps that can make use of the extra options. Currently, the opt argument is unused.
The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of stylepixmap. See the table below for the appropriate widget casts:
StylePixmap | Widget Cast |
---|---|
SP_TitleBarMinButton | (const QWidget *) |
SP_TitleBarMaxButton | (const QWidget *) |
SP_TitleBarCloseButton | (const QWidget *) |
SP_TitleBarNormalButton | (const QWidget *) |
SP_TitleBarShadeButton | (const QWidget *) |
SP_TitleBarUnshadeButton | (const QWidget *) |
SP_DockWindowCloseButton | (const QDockWindow *) |
See also StylePixmap.
QRect QStyle::subRect ( SubRectsubrect, constQWidget*widget ) const [pure virtual]
Returns the sub-area subrect for the widget in logical coordinates.
The widget argument is a pointer to a QWidget or one of its subclasses. The widget can be cast to the appropriate type based on the value of subrect. See the table below for the appropriate widget casts:
SubRect | Widget Cast |
---|---|
SR_PushButtonContents | (const QPushButton *) |
SR_PushButtonFocusRect | (const QPushButton *) |
SR_CheckBoxIndicator | (const QCheckBox *) |
SR_CheckBoxContents | (const QCheckBox *) |
SR_CheckBoxFocusRect | (const QCheckBox *) |
SR_RadioButtonIndicator | (const QRadioButton *) |
SR_RadioButtonContents | (const QRadioButton *) |
SR_RadioButtonFocusRect | (const QRadioButton *) |
SR_ComboBoxFocusRect | (const QComboBox *) |
SR_DockWindowHandleRect | (const QWidget *) |
SR_ProgressBarGroove | (const QProgressBar *) |
SR_ProgressBarContents | (const QProgressBar *) |
SR_ProgressBarLabel | (const QProgressBar *) |
The tear-off handle (SR_DockWindowHandleRect) for QDockWindow is a private class. Use QWidget::parentWidget() to access the QDockWindow:
if ( !widget->parentWidget() ) return; const QDockWindow *dw = (const QDockWindow *) widget->parentWidget();
See also SubRect.
void QStyle::tabbarMetrics ( constQWidget*t, int&hf, int&vf, int&ov ) const
This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.void QStyle::unPolish ( QWidget* ) [virtual]
Undoes the initialization of a widget's appearance.This function is the counterpart to polish. It is called for every polished widget when the style is dynamically changed. The former style has to unpolish its settings before the new style can polish them again.
See also polish().
Examples: themes/metal.cpp and themes/wood.cpp.
void QStyle::unPolish ( QApplication* ) [virtual]
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.Undoes the application polish.
See also polish().
QRect QStyle::visualRect ( constQRect&logical, constQWidget*w ) [static]
Returns the rect logical in screen coordinates. The bounding rect for widget w is used to perform the translation. This function is provided to aid style implementors in supporting right-to-left mode.
See also QApplication::reverseLayout().
QRect QStyle::visualRect ( constQRect&logical, constQRect&bounding ) [static]
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.Returns the rect logical in screen coordinates. The rect bounding is used to perform the translation. This function is provided to aid style implementors in supporting right-to-left mode.
See also QApplication::reverseLayout().
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论