qstyle.3qt

来自「tmark1.11:用于生成QT/EMBEDDED应用工程的Markfile文件」· 3QT 代码 · 共 415 行 · 第 1/2 页

3QT
415
字号
.TH QStyle 3qt "6 July 1999" "Troll Tech AS" \" -*- nroff -*-.\" Copyright 1992-1999 Troll Tech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQStyle \- Encapsulates common Look and Feel of a GUI.SH SYNOPSIS.br.PP\fC#include <qstyle.h>\fR.PPInherits QObject..PPInherited by QCommonStyle..PP.SS "Public Members".in +1c.ti -1c.BI "virtual \fB~QStyle\fR ()".br.ti -1c.BI "GUIStyle \fBguiStyle\fR () const".br.ti -1c.BI "virtual void \fBpolish\fR ( QWidget * )".br.ti -1c.BI "virtual void \fBunPolish\fR ( QWidget * )".br.ti -1c.BI "virtual void \fBpolish\fR ( QApplication * )".br.ti -1c.BI "virtual void \fBunPolish\fR ( QApplication * )".br.ti -1c.BI "virtual void \fBpolish\fR ( QPalette & )".br.ti -1c.BI "virtual QRect \fBitemRect\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", int " "flags" ", bool " "enabled" ", const QPixmap * " "pixmap" ", const QString & " "text" ", int " "len" "=-1 )".br.ti -1c.BI "virtual void \fBdrawItem\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", int " "flags" ", const QColorGroup & " "g" ", bool " "enabled" ", const QPixmap * " "pixmap" ", const QString & " "text" ", int " "len" "=-1, const QColor * " "penColor" " = 0 )".br.ti -1c.BI "virtual void \fBdrawSeparator\fR ( QPainter * " "p" ", int " "x1" ", int " "y1" ", int " "x2" ", int " "y2" ", const QColorGroup & " "g" ", bool " "sunken" " = TRUE, int " "lineWidth" " = 1, int " "midLineWidth" " = 0 )".br.ti -1c.BI "virtual void \fBdrawRect\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColor &, int " "lineWidth" " = 1, const QBrush * " "fill" " = 0 )".br.ti -1c.BI "virtual void \fBdrawRectStrong\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup &, bool " "sunken" "=FALSE, int " "lineWidth" " = 1, int " "midLineWidth" " = 0, const QBrush * " "fill" " = 0 )".br.ti -1c.BI "virtual void \fBdrawButton\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup & " "g" ", bool " "sunken" " = FALSE, const QBrush * " "fill" " = 0 )".br.ti -1c.BI "virtual QRect \fBbuttonRect\fR ( int " "x" ", int " "y" ", int " "w" ", int h )".br.ti -1c.BI "virtual void \fBdrawButtonMask\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int h )".br.ti -1c.BI "virtual void \fBdrawBevelButton\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup & " "g" ", bool " "sunken" " = FALSE, const QBrush * " "fill" " = 0 )".br.ti -1c.BI "virtual void \fBdrawToolButton\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup & " "g" ", bool " "sunken" " = FALSE, const QBrush * " "fill" " = 0 )".br.ti -1c.BI "virtual void \fBdrawPanel\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup &, bool " "sunken" "=FALSE, int " "lineWidth" " = 1, const QBrush * " "fill" " = 0 )".br.ti -1c.BI "virtual void \fBdrawPopupPanel\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup &, int " "lineWidth" " = 2, const QBrush * " "fill" " = 0 )".br.ti -1c.BI "virtual void \fBdrawArrow\fR ( QPainter * " "p" ", Qt::ArrowType " "type" ", bool " "down" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup & " "g" ", bool " "enabled" ", const QBrush * " "fill" " = 0 )".br.ti -1c.BI "virtual QSize \fBexclusiveIndicatorSize\fR () const".br.ti -1c.BI "virtual void \fBdrawExclusiveIndicator\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup & " "g" ", bool " "on" ", bool " "down" " = FALSE, bool " "enabled" " = TRUE )".br.ti -1c.BI "virtual void \fBdrawExclusiveIndicatorMask\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", bool on )".br.ti -1c.BI "virtual QSize \fBindicatorSize\fR () const".br.ti -1c.BI "virtual void \fBdrawIndicator\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup & " "g" ", int " "state" ", bool " "down" " = FALSE, bool " "enabled" " = TRUE )".br.ti -1c.BI "virtual void \fBdrawIndicatorMask\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", int state )".br.ti -1c.BI "virtual void \fBdrawFocusRect\fR ( QPainter *, const QRect &, const QColorGroup &, const QColor * " "bg" " = 0, bool = FALSE )".br.ti -1c.BI "virtual void \fBdrawComboButton\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup & " "g" ", bool " "sunken" " = FALSE, bool " "editable" " = FALSE, bool " "enabled" " = TRUE, const QBrush * " "fill" " = 0 )".br.ti -1c.BI "virtual QRect \fBcomboButtonRect\fR ( int " "x" ", int " "y" ", int " "w" ", int h )".br.ti -1c.BI "virtual QRect \fBcomboButtonFocusRect\fR ( int " "x" ", int " "y" ", int " "w" ", int h )".br.ti -1c.BI "virtual void \fBdrawComboButtonMask\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int h )".br.ti -1c.BI "virtual void \fBdrawPushButton\fR ( QPushButton * " "btn" ", QPainter * p )".br.ti -1c.BI "virtual void \fBdrawPushButtonLabel\fR ( QPushButton * " "btn" ", QPainter * p )".br.ti -1c.BI "virtual void \fBgetButtonShift\fR ( int & " "x" ", int & y )".br.ti -1c.BI "virtual int \fBdefaultFrameWidth\fR () const".br.ti -1c.BI "virtual void \fBtabbarMetrics\fR ( const QTabBar *, int &, int &, int & )".br.ti -1c.BI "virtual void \fBdrawTab\fR ( QPainter *, const QTabBar *, QTab *, bool selected )".br.ti -1c.BI "virtual void \fBdrawTabMask\fR ( QPainter *, const QTabBar *, QTab *, bool selected )".br.ti -1c.BI "enum \fBScrollControl\fR { AddLine = 0x1, SubLine = 0x2, AddPage = 0x4, SubPage = 0x8, First = 0x10, Last = 0x20, Slider = 0x40, NoScroll = 0x80 }".br.ti -1c.BI "virtual void \fBscrollBarMetrics\fR ( const QScrollBar *, int &, int &, int &, int & )".br.ti -1c.BI "virtual void \fBdrawScrollBarControls\fR ( QPainter *, const QScrollBar *, int " "sliderStart" ", uint " "controls" ", uint activeControl )".br.ti -1c.BI "virtual ScrollControl \fBscrollBarPointOver\fR ( const QScrollBar *, int " "sliderStart" ", const QPoint & )".br.ti -1c.BI "virtual int \fBsliderLength\fR () const".br.ti -1c.BI "virtual void \fBdrawSlider\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup & " "g" ", Orientation, bool " "tickAbove" ", bool tickBelow )".br.ti -1c.BI "virtual void \fBdrawSliderMask\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", Orientation, bool " "tickAbove" ", bool tickBelow )".br.ti -1c.BI "virtual void \fBdrawSliderGroove\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup & " "g" ", QCOORD " "c" ", Orientation )".br.ti -1c.BI "virtual void \fBdrawSliderGrooveMask\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", QCOORD " "c" ", Orientation )".br.ti -1c.BI "virtual int \fBmaximumSliderDragDistance\fR () const".br.ti -1c.BI "virtual int \fBsplitterWidth\fR () const".br.ti -1c.BI "virtual void \fBdrawSplitter\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup & " "g" ", Orientation )".br.ti -1c.BI "virtual void \fBdrawCheckMark\fR ( QPainter * " "p" ", int " "x" ", int " "y" ", int " "w" ", int " "h" ", const QColorGroup & " "g" ", bool " "act" ", bool dis )".br.ti -1c.BI "virtual void \fBpolishPopupMenu\fR ( QPopupMenu * )".br.ti -1c.BI "virtual int \fBextraPopupMenuItemWidth\fR ( bool " "checkable" ", int " "maxpmw" ", QMenuItem * " "mi" ", const QFontMetrics & fm )".br.ti -1c.BI "virtual int \fBpopupSubmenuIndicatorWidth\fR ( const QFontMetrics & fm )".br.ti -1c.BI "virtual int \fBpopupMenuItemHeight\fR ( bool " "checkable" ", QMenuItem * " "mi" ", const QFontMetrics & fm )".br.ti -1c.BI "virtual void \fBdrawPopupMenuItem\fR ( QPainter * " "p" ", bool " "checkable" ", int " "maxpmw" ", int " "tab" ", QMenuItem * " "mi" ", const QPalette & " "pal" ", bool " "act" ", bool " "enabled" ", int " "x" ", int " "y" ", int " "w" ", int h )".br.in -1c.SH DESCRIPTIONEncapsulates common Look and Feel of a GUI..PPWhile it is not possible to fully enumerate the look of graphic elements and the feel of widgets in a GUI, a large number of 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 methods. It also provides two feel options - Motif and Windows..PPIn previous versions of Qt, the look and feel option for widgets was specified by a single value - the GUIStyle. Starting with Qt 2.0, this notion has been expanded to allow the look to be specified by virtual drawing functions..PPDerived classes may override some or all of the drawing functions to modify the look of all widgets which utilize those functions..PPExamples:.(lthemes/main.cpp.)l.SH MEMBER FUNCTION DOCUMENTATION.SH "QStyle::~QStyle () \fC[virtual]\fR"Destructs the style..SH "QRect QStyle::buttonRect ( int x, int y, int w, int h ) \fC[virtual]\fR"Returns the rectangle available for contents in a push button. Usually this is the entire rectangle but it may also be smaller when you think about rounded buttons..PP

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?