📄 qwtpushbutton.3
字号:
.TH "QwtPushButton" 3 "16 Nov 2004" "Version 4.2.0" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtPushButton \- .SH SYNOPSIS.br.PPInherited by \fBQwtLegendButton\fP..PP.SH "Detailed Description".PP A push button that allows alignment of button labels, and use of rich texts, as provided by QLabel..PP\fBWarning:\fP.RS 4The layout of the text label might be broken for a couple of styles. At least the KDE 3.3 Keramik style is known. .RE.PP.PPDefinition at line 24 of file qwt_push_button.h..SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtPushButton\fP (QWidget *=NULL, const char *name=NULL)".br.ti -1c.RI "\fBQwtPushButton\fP (const QString &text, QWidget *=NULL, const char *name=NULL)".br.ti -1c.RI "\fBQwtPushButton\fP (const QIconSet &, const QString &, QWidget *=NULL, const char *name=NULL)".br.ti -1c.RI "TextFormat \fBtextFormat\fP () const".br.ti -1c.RI "void \fBsetTextFormat\fP (TextFormat)".br.ti -1c.RI "virtual Qt::TextFormat \fBusedTextFormat\fP () const".br.ti -1c.RI "int \fBalignment\fP () const".br.ti -1c.RI "virtual void \fBsetAlignment\fP (int alignment)".br.ti -1c.RI "void \fBsetIndent\fP (int)".br.ti -1c.RI "int \fBindent\fP () const".br.ti -1c.RI "virtual QSize \fBsizeHint\fP () const".br.ti -1c.RI "virtual int \fBheightForWidth\fP (int) const".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "virtual void \fBdrawButtonLabel\fP (QPainter *)".br.in -1c.SH "Constructor & Destructor Documentation".PP .SS "QwtPushButton::QwtPushButton (QWidget * parent = \fCNULL\fP, const char * name = \fCNULL\fP)".PPConstructs a push button with no text. Definition at line 217 of file qwt_push_button.cpp..SS "QwtPushButton::QwtPushButton (const QString & text, QWidget * parent = \fCNULL\fP, const char * name = \fCNULL\fP)".PPConstructs a push button called name with the parent parent and the text text. Definition at line 227 of file qwt_push_button.cpp..SS "QwtPushButton::QwtPushButton (const QIconSet & iconSet, const QString & text, QWidget * parent = \fCNULL\fP, const char * name = \fCNULL\fP)".PPConstructs a push button with an icon and a text. Definition at line 237 of file qwt_push_button.cpp..SH "Member Function Documentation".PP .SS "int QwtPushButton::alignment () const".PP\fBReturns:\fP.RS 4Alignment of the button label's contents. .RE.PP\fBSee also:\fP.RS 4\fBQwtPushButton::setAlignment\fP .RE.PPDefinition at line 301 of file qwt_push_button.cpp..PPReferenced by QwtLegendButton::titleText()..SS "void QwtPushButton::drawButtonLabel (QPainter *)\fC [protected, virtual]\fP".PPDraws the button text or pixmap. .PPDefinition at line 417 of file qwt_push_button.cpp..SS "int QwtPushButton::heightForWidth (int width) const\fC [virtual]\fP".PPFind the preferred height, given the width w..PP\fBParameters:\fP.RS 4\fIwidth\fP Width .RE.PP\fBReturns:\fP.RS 4preferred height .RE.PPDefinition at line 352 of file qwt_push_button.cpp..PPReferences QwtText::boundingRect(), QwtText::heightForWidth(), QwtText::makeText(), sizeHint(), and usedTextFormat()..SS "int QwtPushButton::indent () const".PP\fBReturns:\fP.RS 4Indent of the button label's contents. .RE.PP\fBSee also:\fP.RS 4\fBQwtPushButton::setIndent\fP .RE.PPDefinition at line 325 of file qwt_push_button.cpp..SS "void QwtPushButton::setAlignment (int alignment)\fC [virtual]\fP".PPSets the alignment of the button label磗 contents. .PPThe default format is Qt::AlignCenter | Qt::ExpandTabs | Qt::WordBreak..PP\fBParameters:\fP.RS 4\fIalignment\fP Bitwise OR of Qt::AlignmentFlags and Qt::TextFlags values..RE.PP\fBSee also:\fP.RS 4\fBQwtPushButton::alignment()\fP .RE.PPDefinition at line 315 of file qwt_push_button.cpp..SS "void QwtPushButton::setIndent (int indent)".PPSets the button label's contents indent in pixels. .PPThe default value is 4 pixels..PP\fBParameters:\fP.RS 4\fIindent\fP Indent.RE.PP\fBSee also:\fP.RS 4\fBQwtPushButton::indent()\fP .RE.PPDefinition at line 340 of file qwt_push_button.cpp..SS "void QwtPushButton::setTextFormat (TextFormat textFormat)".PPSets the button label's text format. The default format is AutoText. .PP\fBParameters:\fP.RS 4\fItextFormat\fP Text format for the button label text.RE.PP\fBSee also:\fP.RS 4\fBQwtPushButton::textFormat()\fP .RE.PPDefinition at line 291 of file qwt_push_button.cpp..SS "QSize QwtPushButton::sizeHint () const\fC [virtual]\fP".PPReturn sizeHint. .PPDefinition at line 370 of file qwt_push_button.cpp..PPReferences QwtRichText::boundingRect(), textFormat(), and usedTextFormat()..PPReferenced by heightForWidth()..SS "Qt::TextFormat QwtPushButton::textFormat () const".PP\fBReturns:\fP.RS 4The button label's text format .RE.PP\fBSee also:\fP.RS 4\fBQwtPushButton::setTextFormat\fP .RE.PPDefinition at line 277 of file qwt_push_button.cpp..PPReferenced by sizeHint()..SS "Qt::TextFormat QwtPushButton::usedTextFormat () const\fC [virtual]\fP".PPFind the text format that is used for painting the button label. .PPIn case of Qt::AutoText the format is found by evaluating text(), otherwise it is \fBtextFormat()\fP.PP\fBReturns:\fP.RS 4Text format that is used for painting .RE.PP\fBSee also:\fP.RS 4\fBtextFormat()\fP, \fBsetTextFormat()\fP, QStyleSheet::mightBeRichText() .RE.PPDefinition at line 262 of file qwt_push_button.cpp..PPReferenced by heightForWidth(), sizeHint(), and QwtLegendButton::titleText()..SH "Author".PP Generated automatically by Doxygen for Qwt User's Guide from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -