📄 qradiobutton.3qt
字号:
.TH QRadioButton 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 NAMEQRadioButton \- Radio button with a text label.SH SYNOPSIS.br.PP\fC#include <qradiobutton.h>\fR.PPInherits QButton..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQRadioButton\fR ( QWidget * " "parent" ", const char * " "name" "=0 )".br.ti -1c.BI "\fBQRadioButton\fR ( const QString & " "text" ", QWidget * " "parent" ", const char * " "name" "=0 )".br.ti -1c.BI "bool \fBisChecked\fR () const".br.ti -1c.BI "virtual void \fBsetChecked\fR ( bool check )".br.ti -1c.BI "virtual QSize \fBsizeHint\fR () const".br.ti -1c.BI "virtual QSizePolicy \fBsizePolicy\fR () const".br.in -1c.SS "Protected Members".in +1c.ti -1c.BI "virtual bool \fBhitButton\fR ( const QPoint & ) const".br.ti -1c.BI "virtual void \fBdrawButton\fR ( QPainter * )".br.ti -1c.BI "virtual void \fBdrawButtonLabel\fR ( QPainter * )".br.ti -1c.BI "virtual void \fBresizeEvent\fR ( QResizeEvent * )".br.ti -1c.BI "virtual void \fBfocusInEvent\fR ( QFocusEvent * )".br.ti -1c.BI "virtual void \fBupdateMask\fR ()".br.in -1c.SH DESCRIPTIONThe QRadioButton widget provides a radio button with a text label..PPQRadioButton and QCheckBox are both toggle buttons, that is, they can be switched on (checked) or off (unchecked). Unlike check boxes, radio buttons are normally organized in groups where only one radio button can be switched on at a time..PPThe QButtonGroup widget is very useful for defining groups of radio buttons..PP<img src=qradiobt-m.png> <img src=qradiobt-w.png>.PPSee also: QPushButton, QToolButton and GUI Design Handbook: Radio Button.PPExamples:.(lxform/xform.cpp drawdemo/drawdemo.cpp.)l.SH MEMBER FUNCTION DOCUMENTATION.SH "QRadioButton::QRadioButton ( QWidget * parent, const char * name=0 )"Constructs a radio button with no text..PPThe \fIparent\fR and \fIname\fR arguments are sent to the QWidget constructor..SH "QRadioButton::QRadioButton ( const QString & text, QWidget * parent, const char * name=0 )"Constructs a radio button with a text..PPThe \fIparent\fR and \fIname\fR arguments are sent to the QWidget constructor..SH "void QRadioButton::drawButton ( QPainter * paint ) \fC[virtual protected]\fR"Draws the radio button, but not the button label..PPSee also: drawButtonLabel()..PPReimplemented from QButton..SH "void QRadioButton::drawButtonLabel ( QPainter * p ) \fC[virtual protected]\fR"Draws the radio button label..PPSee also: drawButton()..PPReimplemented from QButton..SH "void QRadioButton::focusInEvent ( QFocusEvent * e ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "bool QRadioButton::hitButton ( const QPoint & pos ) const \fC[virtual protected]\fR"Reimplements QButton::hitButton(). This function is implemented to prevent a radio button that is on from being switched off..PPReimplemented from QButton..SH "bool QRadioButton::isChecked () const"Returns TRUE if the radio button is checked, or FALSE if it is not checked..PPSee also: setChecked()..SH "void QRadioButton::setChecked ( bool check ) \fC[virtual]\fR"Checks the radio button if \fIcheck\fR is TRUE, or unchecks it if \fIcheck\fR is FALSE..PPCalling this function does not affect other radio buttons unless a radio button group has been defined using the QButtonGroup widget..PPSee also: isChecked()..PPExamples:.(lxform/xform.cpp drawdemo/drawdemo.cpp.)l.SH "QSize QRadioButton::sizeHint () const \fC[virtual]\fR"Returns a size which fits the contents of the radio button..PPReimplemented from QWidget..SH "QSizePolicy QRadioButton::sizePolicy () const \fC[virtual]\fR"Specifies that this widget may stretch horizontally, but is fixed vertically..PPReimplemented from QWidget..SH "SEE ALSO".BR http://www.troll.no/qt/qradiobutton.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 + -