|
Qyoto
4.0.7
Qyoto is a C# language binding for Qt
|
The QStatusTipEvent class provides an event that is used to show messages in a status bar. More...


Public Member Functions | |
| QStatusTipEvent (QStatusTipEvent copy) | |
| QStatusTipEvent (string tip) | |
| More... | |
| override void | CreateProxy () |
| new void | Dispose () |
Public Member Functions inherited from QtCore.QEvent | |
| QEvent (QEvent copy) | |
| QEvent (QEvent.Type type) | |
| More... | |
| new void | Accept () |
| More... | |
| new void | Ignore () |
| More... | |
| new void | SetAccepted (bool accepted) |
| new void | Dispose () |
Protected Member Functions | |
| QStatusTipEvent (System.Type dummy) | |
Protected Member Functions inherited from QtCore.QEvent | |
| QEvent (System.Type dummy) | |
Properties | |
| string | Tip [get] |
| More... | |
Properties inherited from QtCore.QEvent | |
| bool | IsAccepted [get] |
| bool | Spontaneous [get] |
| More... | |
| QEvent.Type | type [get] |
| More... | |
| virtual System.IntPtr | SmokeObject [get, set] |
| new ushort | T [get, set] |
| static new QMetaObject | StaticMetaObject [get] |
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:
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
QWidget *myWidget = new QWidget;
myWidget->setStatusTip(tr("This is my widget."));
setCentralWidget(myWidget);
...
}
Status tips can also be set on actions using the QAction::setStatusTip() function:
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
QMenu *fileMenu = menuBar()->addMenu(tr("File"));
QAction *newAct = new QAction(tr("&New"), this);
newAct->setStatusTip(tr("Create a new file."));
fileMenu->addAction(newAct);
...
}
Finally, status tips are supported for the item view classes through the Qt::StatusTipRole enum value.
See also QStatusBar, QHelpEvent, and QWhatsThisClickedEvent.
|
protected |
| QtGui.QStatusTipEvent.QStatusTipEvent | ( | QStatusTipEvent | copy | ) |

| QtGui.QStatusTipEvent.QStatusTipEvent | ( | string | tip | ) |
Constructs a status tip event with the text specified by tip.
See also tip().

|
virtual |
| new void QtGui.QStatusTipEvent.Dispose | ( | ) |
|
get |
Returns the message to show in the status bar.
See also QStatusBar::showMessage().