📄 qfontdialog.3qt
字号:
.TH QFontDialog 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 NAMEQFontDialog \- The QFontDialog provides a dialog widget for selecting a text font.SH SYNOPSIS.br.PP\fC#include <qfontdialog.h>\fR.PPInherits QDialog..PP.SS "Signals".TPvoid \fBfontSelected\fR ( const QFont & font ) .TPvoid \fBfontHighlighted\fR ( const QFont & font ) .SS "Static Public Members".TPQFont \fBgetFont\fR ( bool * ok, const QFont & def, QWidget * parent = 0, const char * name = 0 ) .TPQFont \fBgetFont\fR ( bool * ok, QWidget * parent = 0, const char * name = 0 ) .SS "Protected Members".TPvirtual bool \fBeventFilter\fR ( QObject *, QEvent * ) .TPQListBox* \fBfamilyListBox\fR () const.TPvirtual void \fBupdateFamilies\fR () .TPQListBox* \fBstyleListBox\fR () const.TPvirtual void \fBupdateStyles\fR () .TPQListBox* \fBsizeListBox\fR () const.TPvirtual void \fBupdateSizes\fR () .TPQComboBox* \fBscriptCombo\fR () const.TPvirtual void \fBupdateScripts\fR () .SS "Protected Slots".TPvoid \fBsizeChanged\fR ( const QString & ) .SH DESCRIPTIONThe QFontDialog provides a dialog widget for selecting a text font.PPUsed for allowing the user to select a font among the available fonts on the underlying window system..SH MEMBER FUNCTION DOCUMENTATION.SH "bool QFontDialog::eventFilter ( QObject * o, QEvent * e ) \fC[virtual protected]\fR"Event filter to make up, down, pageup and pagedown work correctly in the line edits..PPReimplemented from QObject..SH "QListBox * QFontDialog::familyListBox () const \fC[protected]\fR"Returns a pointer to the "font family" list box. This is usable mainly if you reimplement updateFontFamilies();..SH "QFont QFontDialog::getFont ( bool * ok, QWidget * parent = 0,const char * name = 0 ) \fC[static]\fR"Opens a modal font dialog and returns the font selected by the user..PPThe \fIok\fR parameter is set to TRUE if the user clicked OK, and FALSE if the user clicked Cancel..PPIf the user clicks Cancel the Qt default font is returned..PPThis static function is less capable than the full QFontDialog object, but is convenient and easy to use..PPExample:.PP.nf.br // start at the current working directory and with *.cpp as filter.br bool ok;.br QFont f = QFontDialog::getFont( &ok, this );.br if ( ok ) {.br // the user selected a valid font.br } else {.br // the user cancelled the dialog.br }.fi.SH "QFont QFontDialog::getFont ( bool * ok, const QFont & initial, QWidget * parent = 0, const char * name = 0 ) \fC[static]\fR"Opens a modal font dialog and returns the font selected by the user..PP\fIinitial\fR is the initial selected font..PPThe \fIok\fR parameter is set to TRUE if the user clicked OK, and FALSE if the user clicked Cancel..PPIf the user clicks Cancel the \fIinitial\fR font is returned..PPThis static function is less capable than the full QFontDialog object, but is convenient and easy to use..PPExample:.PP.nf.br // start at the current working directory and with *.cpp as filter.br bool ok;.br QFont f = QFontDialog::getFont( &ok, QFont( "Times", 12 ), this );.br if ( ok ) {.br // the user selected a valid font.br } else {.br // the user cancelled the dialog.br }.fi.PPAnother example:.PP.nf.br mywidget.setFont( QFontDialog::getFont( 0, mywidget.font() ) );.fi.SH "QComboBox * QFontDialog::scriptCombo () const \fC[protected]\fR"Returns a pointer to the "font style" list box. This is usable mainly if you reimplement updateFontStyles();..SH "QListBox * QFontDialog::sizeListBox () const \fC[protected]\fR"Returns a pointer to the "font size" list box. This is usable mainly if you reimplement updateFontSizes();..SH "QListBox * QFontDialog::styleListBox () const \fC[protected]\fR"Returns a pointer to the "font style" list box. This is usable mainly if you reimplement updateFontStyles();..SH "void QFontDialog::updateFamilies () \fC[virtual protected]\fR"Update the contents of the "font family" list box. This function can be reimplemented if you have special requirements..SH "void QFontDialog::updateScripts () \fC[virtual protected]\fR"Update the contents of the "font script" combo box. This function can be reimplemented if you have special requirements..SH "void QFontDialog::updateStyles () \fC[virtual protected]\fR"Update the contents of the "font style" list box. Thisfunction can be reimplemented if you have special requirements..SH "SEE ALSO".BR http://www.troll.no/qt/qfontdialog.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 + -