⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qpushbutton.3qt

📁 tmark1.11:用于生成QT/EMBEDDED应用工程的Markfile文件
💻 3QT
字号:
.TH QPushButton 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 NAMEQPushButton \- Push button with a text or pixmap label.SH SYNOPSIS.br.PP\fC#include <qpushbutton.h>\fR.PPInherits QButton..PP.SS "Public Slots".TPvirtual void \fBsetOn\fR ( bool ) .TPvoid \fBtoggle\fR () .SS "Protected Members".TPvirtual void \fBdrawButton\fR ( QPainter * ) .TPvirtual void \fBdrawButtonLabel\fR ( QPainter * ) .TPvirtual void \fBfocusInEvent\fR ( QFocusEvent * ) .TPvirtual void \fBfocusOutEvent\fR ( QFocusEvent * ) .TPvirtual void \fBresizeEvent\fR ( QResizeEvent * ) .TPvirtual void \fBupdateMask\fR () .SH DESCRIPTIONThe QPushButton widget provides a push button with a text or pixmap label..PPThe push button (command button in Windows parlance) is perhaps the most central widget: Push it to command the computer to perform some action..PPBeing so central, the widget has grown to accomodate a great many variations in the past decade, and by now the "comand button" chapter of the Microsoft style guide shows about ten different states of Windows push buttons, and the text implies that there are dozens more when all the combinations of features are taken into consideration..PPThe most important modes or states are, sorted roughly by importance: .TPAvailable or not ("grayed out", disabled)..TPStandard push button or toggling push button..TPOn or off (only for toggling push buttons)..TPDefault or normal. The default button in a dialog can generally be "clicked" using the Enter or Return key..TPAuto-repeat or not..TPPressed down or not..PP<img src="qpushbt-m.png"> <img src="qpushbt-w.png">.PPIn Qt, the QButton class provides most of the modes and other API, and QPushButton provides GUI logic. See QButton for more information about the API..PPSee also: QRadioButton, QToolButton, GUI Design Handbook: Push Button and Microsoft Style Guide.PPExamples:.(lxform/xform.cpp layout/layout.cpp drawdemo/drawdemo.cpp popup/popup.cpp qmag/qmag.cpp rot13/rot13.cpp scrollview/scrollview.cpp customlayout/main.cpp.)l.SH MEMBER FUNCTION DOCUMENTATION.SH "void QPushButton::drawButton ( QPainter * paint ) \fC[virtual protected]\fR"Draws the push button, except its label..PPSee also: drawButtonLabel()..PPReimplemented from QButton..SH "void QPushButton::drawButtonLabel ( QPainter * paint ) \fC[virtual protected]\fR"Draws the push button label..PPSee also: drawButton()..PPReimplemented from QButton..SH "void QPushButton::focusInEvent ( QFocusEvent * e ) \fC[virtual protected]\fR"Handles focus in events for the push button..PPReimplemented from QWidget..SH "void QPushButton::focusOutEvent ( QFocusEvent * e ) \fC[virtual protected]\fR"Handles focus out events for the push button..PPReimplemented from QWidget..SH "void QPushButton::setOn ( bool enable ) \fC[virtual slot]\fR"Switches a toggle button on if \fIenable\fR is TRUE or off if \fIenable\fR is FALSE..PPSee also: isOn(), toggle(), toggled() and isToggleButton()..PPExamples:.(lqmag/qmag.cpp.)l.SH "void QPushButton::toggle () \fC[slot]\fR"Toggles the state of a toggle button..PPSee also:  isOn(), setOn(), toggled() and isToggleButton()..SH "SEE ALSO".BR http://www.troll.no/qt/qpushbutton.html.SH COPYRIGHTCopyright 1992-1999 Troll Tech AS.  See the license file included inthe distribution for a complete license statement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

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