Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2022

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

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