PythonQt.QtGui.QToolTip · declarations 001
Back to PythonQt.QtGui.QToolTip
font
font() -> Any
X.font() -> PythonQt.QtGui.QFont
Supplemental documentation: Qt 5 reference:
[static] QFont QToolTip::font()
Returns the font used to render tooltips.
This function was introduced in Qt 4.2.
See also setFont().
Upstream PySide2 reference signatures (binding differences may apply):
font() -> PySide2.QtGui.QFont
Source: https://doc.qt.io/archives/qt-5.15/qtooltip.html#font
hideText
hideText() -> None
X.hideText()
Supplemental documentation: Qt 5 reference:
[static] void QToolTip::hideText()
Hides the tool tip. This is the same as calling showText() with an empty string.
This function was introduced in Qt 4.2.
See also showText().
Upstream PySide2 reference signatures (binding differences may apply):
hideText() -> None
Source: https://doc.qt.io/archives/qt-5.15/qtooltip.html#hideText
isVisible
isVisible() -> bool
X.isVisible() -> bool
Supplemental documentation: Qt 5 reference:
[static] bool QToolTip::isVisible()
Returns true if this tooltip is currently shown.
This function was introduced in Qt 4.4.
See also showText().
Upstream PySide2 reference signatures (binding differences may apply):
isVisible() -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtooltip.html#isVisible
palette
palette() -> Any
X.palette() -> PythonQt.QtGui.QPalette
Supplemental documentation: Qt 5 reference:
[static] QPalette QToolTip::palette()
Returns the palette used to render tooltips.
Note: Tool tips use the inactive color group of QPalette, because tool tips are not active windows.
See also setPalette().
Upstream PySide2 reference signatures (binding differences may apply):
palette() -> PySide2.QtGui.QPalette
Source: https://doc.qt.io/archives/qt-5.15/qtooltip.html#palette
setFont
setFont(arg__1: Any) -> None
X.setFont(arg__1)
Supplemental documentation: Qt 5 reference:
[static] void QToolTip::setFont(const QFont \&font)
Sets the font used to render tooltips.
This function was introduced in Qt 4.2.
See also font().
Upstream PySide2 reference signatures (binding differences may apply):
setFont(arg__1: PySide2.QtGui.QFont) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtooltip.html#setFont
setPalette
setPalette(arg__1: Any) -> None
X.setPalette(arg__1)
Supplemental documentation: Qt 5 reference:
[static] void QToolTip::setPalette(const QPalette \&palette)
Sets the palette used to render tooltips.
Note: Tool tips use the inactive color group of QPalette, because tool tips are not active windows.
This function was introduced in Qt 4.2.
See also palette().
Upstream PySide2 reference signatures (binding differences may apply):
setPalette(arg__1: PySide2.QtGui.QPalette) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtooltip.html#setPalette
showText
showText(pos: Any, text: str, w: Any, rect: Any, msecShowTime: Any) -> None
X.showText(pos, text, w, rect, msecShowTime)
Supplemental documentation: Qt 5 reference:
[static] void QToolTip::showText(const QPoint \&pos, const QString \&text, QWidget *w, const QRect \&rect)
Shows text as a tool tip, with the global position pos as the point of interest. The tool tip will be shown with a platform specific offset from this point of interest.
If you specify a non-empty rect the tip will be hidden as soon as you move your cursor out of this area.
The rect is in the coordinates of the widget you specify with w. If the rect is
not empty you must specify a widget. Otherwise this argument can be nullptr but it is
used to determine the appropriate screen on multi-head systems.
If text is empty the tool tip is hidden. If the text is the same as the currently shown tooltip, the tip will not move. You can force moving by first hiding the tip with an empty text, and then showing the new tip at the new position.
[static] void QToolTip::showText(const QPoint \&pos, const QString \&text, QWidget *w \= nullptr)
This is an overloaded function.
This is analogous to calling QToolTip::showText(pos, text, w, QRect())
[static] void QToolTip::showText(const QPoint \&pos, const QString \&text, QWidget *w, const QRect \&rect, int msecDisplayTime)
This is an overloaded function.
This is similar to QToolTip::showText(pos, text, w, rect) but with an extra parameter msecDisplayTime that specifies how long the tool tip will be displayed, in milliseconds.
This function was introduced in Qt 5.2.
Upstream PySide2 reference signatures (binding differences may apply):
showText(pos: PySide2.QtCore.QPoint, text: str, w: PySide2.QtWidgets.QWidget, rect: PySide2.QtCore.QRect) -> None
showText(pos: PySide2.QtCore.QPoint, text: str, w: PySide2.QtWidgets.QWidget, rect: PySide2.QtCore.QRect, msecShowTime: int) -> None
showText(pos: PySide2.QtCore.QPoint, text: str, w: typing.Optional[PySide2.QtWidgets.QWidget]=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtooltip.html#showText
text
text() -> str
X.text() -> str
Supplemental documentation: Qt 5 reference:
[static] QString QToolTip::text()
Returns the tooltip text, if a tooltip is visible, or an empty string if a tooltip is not visible.
This function was introduced in Qt 4.4.
Upstream PySide2 reference signatures (binding differences may apply):
text() -> str
Source: https://doc.qt.io/archives/qt-5.15/qtooltip.html#text