<class name="QStatusTipEvent" doc="/**
&lt;p&gt;The &lt;a href=&quot;QStatusTipEvent.html#QStatusTipEvent(java.lang.String)&quot;&gt;&lt;tt&gt;QStatusTipEvent&lt;/tt&gt;&lt;/a&gt; class provides an event that is used to show messages in a status bar.&lt;/p&gt;
&lt;p&gt;Status tips can be set on a widget using the QWidget::setStatusTip() function. They are shown in the status bar when the mouse cursor enters the widget. For example:&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;pre&gt;    MainWindow::MainWindow(QWidget *parent)
        : QMainWindow(parent)
    {
        QWidget *myWidget = new QWidget;
        myWidget-&amp;gt;setStatusTip(tr(&amp;quot;This is my widget.&amp;quot;));

        setCentralWidget(myWidget);
        ...
    }&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qstatustipevent-widget.png&quot; alt=&quot;Widget with status tip.&quot; /&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;Status tips can also be set on actions using the QAction::setStatusTip() function:&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;pre&gt;    MainWindow::MainWindow(QWidget *parent)
        : QMainWindow(parent)
    {
        QMenu *fileMenu = menuBar()-&amp;gt;addMenu(tr(&amp;quot;File&amp;quot;));

        QAction *newAct = new QAction(tr(&amp;quot;&amp;amp;New&amp;quot;), this);
        newAct-&amp;gt;setStatusTip(tr(&amp;quot;Create a new file.&amp;quot;));
        fileMenu-&amp;gt;addAction(newAct);
        ...
    }&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qstatustipevent-action.png&quot; alt=&quot;Action with status tip.&quot; /&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;Finally, status tips are supported for the item view classes through the Qt::StatusTipRole enum value.&lt;/p&gt;

@see &lt;a href=&quot;QStatusBar.html&quot;&gt;&lt;tt&gt;QStatusBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QHelpEvent.html&quot;&gt;&lt;tt&gt;QHelpEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWhatsThisClickedEvent.html&quot;&gt;&lt;tt&gt;QWhatsThisClickedEvent&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QStatusTipEvent(java.lang.String tip)" doc="/**
&lt;p&gt;Constructs a status tip event with the text specified by &lt;tt&gt;tip&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStatusTipEvent.html#tip()&quot;&gt;&lt;tt&gt;tip&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String tip()" doc="/**
&lt;p&gt;Returns the message to show in the status bar.&lt;/p&gt;

@see &lt;tt&gt;QStatusBar::showMessage&lt;/tt&gt; */"/>
</class>
