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

📄 qtoolbutton.3qt

📁 tmark1.11:用于生成QT/EMBEDDED应用工程的Markfile文件
💻 3QT
字号:
.TH QToolButton 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 NAMEQToolButton \- Push button whose appearance has been tailored for use in a QToolBar.SH SYNOPSIS.br.PP\fC#include <qtoolbutton.h>\fR.PPInherits QButton..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQToolButton\fR ( QWidget * " "parent" ", const char * " "name" " = 0 )".br.ti -1c.BI "\fBQToolButton\fR ( const QPixmap & " "pm" ", const QString & " "textLabel" ", const QString & " "grouptext" ", QObject * " "receiver" ", const char * " "slot" ", QToolBar * " "parent" ", const char * " "name" " = 0 )".br.ti -1c.BI "\fBQToolButton\fR ( const QIconSet & " "s" ", const QString & " "textLabel" ", const QString & " "grouptext" ", QObject * " "receiver" ", const char * " "slot" ", QToolBar * " "parent" ", const char * " "name" " = 0 )".br.ti -1c.BI "\fB~QToolButton\fR ()".br.ti -1c.BI "virtual QSize \fBsizeHint\fR () const".br.ti -1c.BI "virtual QSizePolicy \fBsizePolicy\fR () const".br.ti -1c.BI "virtual void \fBsetIconSet\fR ( const QIconSet &, bool " "on" " = FALSE )".br.ti -1c.BI "QIconSet \fBiconSet\fR ( bool " "on" " = FALSE ) const".br.ti -1c.BI "bool \fBusesBigPixmap\fR () const".br.ti -1c.BI "bool \fBusesTextLabel\fR () const".br.ti -1c.BI "QString \fBtextLabel\fR () const".br.in -1c.SS "Public Slots".in +1c.ti -1c.BI "virtual void \fBsetUsesBigPixmap\fR ( bool enable )".br.ti -1c.BI "virtual void \fBsetUsesTextLabel\fR ( bool enable )".br.ti -1c.BI "virtual void \fBsetTextLabel\fR ( const QString &, bool = TRUE )".br.ti -1c.BI "virtual void \fBsetToggleButton\fR ( bool enable )".br.ti -1c.BI "virtual void \fBsetOn\fR ( bool enable )".br.ti -1c.BI "void \fBtoggle\fR ()".br.in -1c.SS "Protected Members".in +1c.ti -1c.BI "virtual void \fBdrawButton\fR ( QPainter * )".br.ti -1c.BI "virtual void \fBdrawButtonLabel\fR ( QPainter * )".br.ti -1c.BI "virtual void \fBenterEvent\fR ( QEvent * )".br.ti -1c.BI "virtual void \fBleaveEvent\fR ( QEvent * )".br.ti -1c.BI "bool \fBuses3D\fR () const".br.in -1c.SH DESCRIPTIONThe QToolButton class provides a push button whose appearance has been tailored for use in a QToolBar..PPThis means that it implements the ridiculous Microsoft auto-raise feature using QIconSet. Apart from that, it's pretty much like a QPushButton. The two classes may at some point be merged..PPSee also: QPushButton, QToolButton and GUI Design Handbook: Push Button.SH MEMBER FUNCTION DOCUMENTATION.SH "QToolButton::QToolButton ( QWidget * parent, const char * name = 0 )"Constructs an empty tool button..SH "QToolButton::QToolButton ( const QIconSet & iconSet, const QString & textLabel, const QString & grouptext, QObject * receiver, const char * slot, QToolBar * parent, const char * name = 0 )"Creates a tool button that is a child of \fIparent\fR (which must be a QToolBar) and named \fIname.\fR.PPThe tool button will display \fIiconSet,\fR with text label or tool tip \fItextLabel\fR and status-bar message \fIgrouptext,\fR connected to \fIslot\fR in object \fIreceiver,\fR and returns the button..SH "QToolButton::QToolButton ( const QPixmap & pm, const QString & textLabel, const QString & grouptext, QObject * receiver, const char * slot, QToolBar * parent, const char * name = 0 )"Creates a tool button that is a child of \fIparent\fR (which must be a QToolBar) and named \fIname.\fR.PPThe tool button will display \fIpm,\fR with text label or tool tip \fItextLabel\fR and status-bar message \fIgrouptext,\fR connected to \fIslot\fR in object \fIreceiver,\fR and returns the button..SH "QToolButton::~QToolButton ()"Destroys the object and frees any allocated resources..SH "void QToolButton::drawButton ( QPainter * p ) \fC[virtual protected]\fR"Draws the edges and decoration of the button (pretty much nothing) and calls drawButtonLabel()..PPSee also: drawButtonLabel() and QButton::paintEvent()..PPReimplemented from QButton..SH "void QToolButton::drawButtonLabel ( QPainter * p ) \fC[virtual protected]\fR"Draws the contents of the button (pixmap and optionally text)..PPSee also: drawButton() and QButton::paintEvent()..PPReimplemented from QButton..SH "void QToolButton::enterEvent ( QEvent * e ) \fC[virtual protected]\fR"Reimplemented to handle the automatic 3D effects in Windows style..PPReimplemented from QWidget..SH "QIconSet QToolButton::iconSet ( bool on = FALSE ) const"Returns a copy of the icon set in use. If no icon set has been set, iconSet() creates one from the pixmap()..PPIf the button doesn't have a pixmap either, iconSet()'s return value is meaningless..PPIf \fIon\fR equals TRUE, the special icon set for the on-state of the button is returned..PPSee also: setIconSet() and QIconSet..SH "void QToolButton::leaveEvent ( QEvent * e ) \fC[virtual protected]\fR"Reimplemented to handle the automatic 3D effects in Windows style..PPReimplemented from QWidget..SH "void QToolButton::setIconSet ( const QIconSet & set, bool on = FALSE ) \fC[virtual]\fR"Sets this tool button to display the icons in \fIset.\fR (setPixmap() is effectively a wrapper for this function.).PPFor toggle buttons it is possible to set an extra icon set with \fIon\fR equals TRUE, which will be used exclusively for the on-state..PPQToolButton makes a copy of \fIset,\fR so you must delete \fIset\fR yourself..PPSee also: iconSet(), QIconSet, setToggleButton() and isOn()..SH "void QToolButton::setOn ( bool enable ) \fC[virtual slot]\fR"Sets this tool button to be on if \fIenable\fR is TRUE, and off it \fIenable\fR is FALSE..PPThis function has no effect on non-toggling buttons..PPSee also: isToggleButton() and toggle()..SH "void QToolButton::setTextLabel ( const QString & newLabel, bool tipToo = TRUE ) \fC[virtual slot]\fR"Sets the label of this button to \fInewLabel,\fR and automatically sets it as tool tip too if \fItipToo\fR is TRUE..SH "void QToolButton::setToggleButton ( bool enable ) \fC[virtual slot]\fR"Makes the tool button a toggle button if \fIenable\fR is TRUE, or a normal tool button if \fIenable\fR is FALSE..PPToggle buttons have an on/off state similar to check boxes. A tool button is initially not a toggle button..PPSee also: setOn(), toggle(), toggleButton() and toggled()..SH "void QToolButton::setUsesBigPixmap ( bool enable ) \fC[virtual slot]\fR"Sets this button to use the big pixmaps provided by its QIconSet if \fIenable\fR is TRUE, and to use the small ones else..PPQToolButton automatically connects this slot to the relevant signal in the QMainWindow in which it resides. You're strongly urged to use QMainWindow::setUsesBigPixmaps() instead..PP\fBWarning:\fR If you set some buttons (in a QMainWindow) to have big and others small pixmaps, QMainWindow may have trouble getting the geometry correct..SH "void QToolButton::setUsesTextLabel ( bool enable ) \fC[virtual slot]\fR"Sets this button to draw a text label below the icon if \fIenable\fR is TRUE, and to not draw it if \fIenable\fR is FALSE..PPQToolButton automatically connects this slot to the relevant signal in the QMainWindow in which is resides..SH "QSize QToolButton::sizeHint () const \fC[virtual]\fR"Returns a size suitable for this tool button. This depends on GUI style, usesBigPixmap(), textLabel() and usesTextLabel()..PPReimplemented from QWidget..SH "QSizePolicy QToolButton::sizePolicy () const \fC[virtual]\fR"Specifies that this widget may grow..PPReimplemented from QWidget..SH "QString QToolButton::textLabel () const"Returns the text label in use by this tool button, or 0..PPSee also: setTextLabel(), usesTextLabel(), setUsesTextLabel() and setText()..SH "void QToolButton::toggle () \fC[slot]\fR"Toggles the state of this tool button..PPThis function has no effect on non-toggling buttons..PPSee also: isToggleButton() and toggle()..SH "bool QToolButton::uses3D () const \fC[protected]\fR"Returns TRUE if this button should be drawn using raised edges..PPSee also: drawButton()..SH "bool QToolButton::usesBigPixmap () const"Returns TRUE if this tool button uses the big (32-pixel) pixmaps, and FALSE if it does not..PPSee also: setUsesBigPixmap(), setPixmap() and usesTextLabel..SH "bool QToolButton::usesTextLabel () const"Returns TRUE if this tool button puts a text label below the button pixmap, and FALSE if it does not..PPSee also:  setUsesTextLabel(), setTextLabel() and usesBigPixmap()..SH "SEE ALSO".BR http://www.troll.no/qt/qtoolbutton.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 + -