<class name="QStatusTipEvent" doc="/** <p>The <a href="QStatusTipEvent.html#QStatusTipEvent(java.lang.String)"><tt>QStatusTipEvent</tt></a> class provides an event that is used to show messages in a status bar.</p> <p>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:</p> <p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><pre> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { QWidget *myWidget = new QWidget; myWidget-&gt;setStatusTip(tr(&quot;This is my widget.&quot;)); setCentralWidget(myWidget); ... }</pre> </td><td><p align="center"><img src="%2E%2E/images/qstatustipevent-widget.png" alt="Widget with status tip." /></p></td></tr> </table></p> <p>Status tips can also be set on actions using the QAction::setStatusTip() function:</p> <p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><pre> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { QMenu *fileMenu = menuBar()-&gt;addMenu(tr(&quot;File&quot;)); QAction *newAct = new QAction(tr(&quot;&amp;New&quot;), this); newAct-&gt;setStatusTip(tr(&quot;Create a new file.&quot;)); fileMenu-&gt;addAction(newAct); ... }</pre> </td><td><p align="center"><img src="%2E%2E/images/qstatustipevent-action.png" alt="Action with status tip." /></p></td></tr> </table></p> <p>Finally, status tips are supported for the item view classes through the Qt::StatusTipRole enum value.</p> @see <a href="QStatusBar.html"><tt>QStatusBar</tt></a> @see <a href="QHelpEvent.html"><tt>QHelpEvent</tt></a> @see <a href="QWhatsThisClickedEvent.html"><tt>QWhatsThisClickedEvent</tt></a> */"> <method name="public QStatusTipEvent(java.lang.String tip)" doc="/** <p>Constructs a status tip event with the text specified by <tt>tip</tt>.</p> @see <a href="QStatusTipEvent.html#tip()"><tt>tip</tt></a> */"/> <method name="public final java.lang.String tip()" doc="/** <p>Returns the message to show in the status bar.</p> @see <tt>QStatusBar::showMessage</tt> */"/> </class>