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

Synopsis¶
Functions¶
def
tip
()
Detailed Description¶
Status tips can be set on a widget using the 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 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 StatusTipRole
enum value.
See also
QStatusBar
QHelpEvent
QWhatsThisClickedEvent
-
class
PySide6.QtGui.
QStatusTipEvent
(arg__1)¶ PySide6.QtGui.QStatusTipEvent(tip)
- Parameters
tip – str
arg__1 –
PySide6.QtGui.QStatusTipEvent
-
PySide6.QtGui.QStatusTipEvent.
tip
()¶ - Return type
str
Returns the message to show in the status bar.
See also
showMessage()
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.