QStatusTipEvent Class Reference

#include <qevent.h>

Inheritance diagram for QStatusTipEvent:

Inheritance graph
[legend]
Collaboration diagram for QStatusTipEvent:

Collaboration graph
[legend]
List of all members.

Detailed Description

The QStatusTipEvent class provides an event that is used to show messages in a status bar.

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:

100% snippets/qstatustipevent/main.cpp MainWindow::MainWindow setCentralWidget } } Widget with status tip.

Status tips can also be set on actions using the QAction::setStatusTip() function:

100% snippets/qstatustipevent/main.cpp MainWindow::MainWindow { QMenu addAction } } Action with status tip.

Finally, status tips are supported for the item view classes through the Qt::StatusTipRole enum value.

See also:
QStatusBar, QHelpEvent, QWhatsThisClickedEvent

Definition at line 564 of file qevent.h.

Public Member Functions

 QStatusTipEvent (const QString &tip)
 ~QStatusTipEvent ()
QString tip () const

Private Attributes

QString s


Constructor & Destructor Documentation

QStatusTipEvent::QStatusTipEvent ( const QString tip  ) 

Constructs a status tip event with the text specified by tip.

See also:
tip()

Definition at line 2656 of file qevent.cpp.

02657     : QEvent(StatusTip), s(tip)
02658 {}

QStatusTipEvent::~QStatusTipEvent (  ) 

Definition at line 2662 of file qevent.cpp.

02663 {
02664 }


Member Function Documentation

QString QStatusTipEvent::tip (  )  const [inline]

Returns the message to show in the status bar.

See also:
QStatusBar::showMessage()

Definition at line 570 of file qevent.h.

References s.

00570 { return s; }


Member Data Documentation

QString QStatusTipEvent::s [private]

Definition at line 572 of file qevent.h.


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 19:06:18 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1