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:
def __init__(self, parent): super().__init__(parent) ...![]()
Status tips can also be set on actions using the setStatusTip()
function:
def __init__(self, parent): super().__init__(parent) fileMenu = menuBar().addMenu(tr("File")) newAct = QAction(tr("New"), self) newAct.setStatusTip(tr("Create a 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
arg__1 –
PySide6.QtGui.QStatusTipEvent
tip – str
Constructs a status tip event with the text specified by tip
.
See also
Constructs a status tip event with the text specified by tip
.
See also
- PySide6.QtGui.QStatusTipEvent.tip()#
- Return type
str
Returns the message to show in the status bar.
See also
showMessage()