<class name="QFontDialog" doc="/** <p>The <a href="QFontDialog.html"><tt>QFontDialog</tt></a> class provides a dialog widget for selecting a font.</p> <p>The usual way to use this class is to call one of the static convenience functions, e.g&#x2e; getFont().</p> <p>Examples:</p> <pre> bool ok; QFont font = QFontDialog::getFont( &amp;ok, QFont(&quot;Helvetica [Cronyx]&quot;, 10), this); if (ok) { <span class="comment">// the user clicked OK and font is set to the font the user selected</span> } else { <span class="comment">// the user canceled the dialog; font is set to the initial</span> <span class="comment">// value, in this case Helvetica [Cronyx], 10</span> }</pre> <p>The dialog can also be used to set a widget's font directly:</p> <pre> myWidget.setFont(QFontDialog::getFont(0, myWidget.font()));</pre> <p>If the user clicks OK the font they chose will be used for myWidget, and if they click Cancel the original font is used.</p> <p align="center"><img src="%2E%2E/images/plastique-fontdialog.png" alt="A font dialog in the Plastique widget style." /></p> @see <a href="QFont.html"><tt>QFont</tt></a> @see <a href="QFontInfo.html"><tt>QFontInfo</tt></a> @see <a href="QFontMetrics.html"><tt>QFontMetrics</tt></a> @see <a href="QColorDialog.html"><tt>QColorDialog</tt></a> @see <a href="QFileDialog.html"><tt>QFileDialog</tt></a> @see <a href="QPrintDialog.html"><tt>QPrintDialog</tt></a> @see Standard Dialogs Example</tt> */"> <signal name="protected final void accepted()" doc="/** <p>This signal is emitted when the dialog has been accepted either by the user or by calling <a href="QDialog.html#accept()"><tt>accept</tt></a> or <a href="QDialog.html#done(int)"><tt>done</tt></a> with the QDialog::Accepted argument.</p> <p>Note that this signal is <i>not</i> emitted when hiding the dialog with <a href="QWidget.html#hide()"><tt>hide</tt></a> or <a href="QDialog.html#setVisible(boolean)"><tt>setVisible</tt></a>(false). This includes deleting the dialog while it is visible.</p> <dl> <dt><b>Compatible Slot Signature:</b></dt> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QFontDialog.html#finished(int)"><tt>finished</tt></a>, <a href="QFontDialog.html#rejected()"><tt>rejected</tt></a></dd> </dl> */"/> <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/** <p>This signal is emitted when the widget's <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a> is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position <tt>pos</tt> is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is <a href="QAbstractScrollArea.html"><tt>QAbstractScrollArea</tt></a> and its subclasses that map the context menu event to coordinates of the viewport()</tt> .</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QPoint pos)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)"><tt>mapToGlobal</tt></a>, <a href="QMenu.html"><tt>QMenu</tt></a>, <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a></dd> </dl> */"/> <signal name="protected final void finished(int result)" doc="/** <p>This signal is emitted when the dialog's <tt>result</tt> code has been set, either by the user or by calling <a href="QDialog.html#done(int)"><tt>done</tt></a>, <a href="QDialog.html#accept()"><tt>accept</tt></a>, or <a href="QDialog.html#reject()"><tt>reject</tt></a>.</p> <p>Note that this signal is <i>not</i> emitted when hiding the dialog with <a href="QWidget.html#hide()"><tt>hide</tt></a> or <a href="QDialog.html#setVisible(boolean)"><tt>setVisible</tt></a>(false). This includes deleting the dialog while it is visible.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(int result)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QFontDialog.html#accepted()"><tt>accepted</tt></a>, <a href="QFontDialog.html#rejected()"><tt>rejected</tt></a></dd> </dl> */"/> <signal name="protected final void rejected()" doc="/** <p>This signal is emitted when the dialog has been rejected either by the user or by calling <a href="QDialog.html#reject()"><tt>reject</tt></a> or <a href="QDialog.html#done(int)"><tt>done</tt></a> with the QDialog::Rejected argument.</p> <p>Note that this signal is <i>not</i> emitted when hiding the dialog with <a href="QWidget.html#hide()"><tt>hide</tt></a> or <a href="QDialog.html#setVisible(boolean)"><tt>setVisible</tt></a>(false). This includes deleting the dialog while it is visible.</p> <dl> <dt><b>Compatible Slot Signature:</b></dt> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QFontDialog.html#finished(int)"><tt>finished</tt></a>, <a href="QFontDialog.html#accepted()"><tt>accepted</tt></a></dd> </dl> */"/> </class>