Skip to content

PythonQt.QtGui.QWhatsThis · declarations 001

Back to PythonQt.QtGui.QWhatsThis

createAction

createAction(parent: Any) -> Any

X.createAction(parent) -> PythonQt.QtGui.QAction

Supplemental documentation: Qt 5 reference:

[static] QAction *QWhatsThis::createAction(QObject *parent \= nullptr)

Returns a ready-made QAction, used to invoke "What's This?" context help, with the given parent.

The returned QAction provides a convenient way to let users enter "What's This?" mode.

Upstream PySide2 reference signatures (binding differences may apply):

createAction(parent: typing.Optional[PySide2.QtCore.QObject]=...) -> PySide2.QtWidgets.QAction

Source: https://doc.qt.io/archives/qt-5.15/qwhatsthis.html#createAction

enterWhatsThisMode

enterWhatsThisMode() -> None

X.enterWhatsThisMode()

Supplemental documentation: Qt 5 reference:

[static] void QWhatsThis::enterWhatsThisMode()

This function switches the user interface into "What's This?" mode. The user interface can be switched back into normal mode by the user (e.g. by them clicking or pressing Esc), or programmatically by calling leaveWhatsThisMode().

When entering "What's This?" mode, a QEvent of type Qt::EnterWhatsThisMode is sent to all toplevel widgets.

See also inWhatsThisMode() and leaveWhatsThisMode().

Upstream PySide2 reference signatures (binding differences may apply):

enterWhatsThisMode() -> None

Source: https://doc.qt.io/archives/qt-5.15/qwhatsthis.html#enterWhatsThisMode

hideText

hideText() -> None

X.hideText()

Supplemental documentation: Qt 5 reference:

[static] void QWhatsThis::hideText()

If a "What's This?" window is showing, this destroys it.

See also showText().

Upstream PySide2 reference signatures (binding differences may apply):

hideText() -> None

Source: https://doc.qt.io/archives/qt-5.15/qwhatsthis.html#hideText

inWhatsThisMode

inWhatsThisMode() -> bool

X.inWhatsThisMode() -> bool

Supplemental documentation: Qt 5 reference:

[static] bool QWhatsThis::inWhatsThisMode()

Returns true if the user interface is in "What's This?" mode; otherwise returns false.

See also enterWhatsThisMode().

Upstream PySide2 reference signatures (binding differences may apply):

inWhatsThisMode() -> bool

Source: https://doc.qt.io/archives/qt-5.15/qwhatsthis.html#inWhatsThisMode

leaveWhatsThisMode

leaveWhatsThisMode() -> None

X.leaveWhatsThisMode()

Supplemental documentation: Qt 5 reference:

[static] void QWhatsThis::leaveWhatsThisMode()

If the user interface is in "What's This?" mode, this function switches back to normal mode; otherwise it does nothing.

When leaving "What's This?" mode, a QEvent of type Qt::LeaveWhatsThisMode is sent to all toplevel widgets.

See also enterWhatsThisMode() and inWhatsThisMode().

Upstream PySide2 reference signatures (binding differences may apply):

leaveWhatsThisMode() -> None

Source: https://doc.qt.io/archives/qt-5.15/qwhatsthis.html#leaveWhatsThisMode

showText

showText(pos: Any, text: str, w: Any) -> None

X.showText(pos, text, w)

Supplemental documentation: Qt 5 reference:

[static] void QWhatsThis::showText(const QPoint \&pos, const QString \&text, QWidget *w \= nullptr)

Shows text as a "What's This?" window, at global position pos. The optional widget argument, w, is used to determine the appropriate screen on multi-head systems.

See also hideText().

Upstream PySide2 reference signatures (binding differences may apply):

showText(pos: PySide2.QtCore.QPoint, text: str, w: typing.Optional[PySide2.QtWidgets.QWidget]=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qwhatsthis.html#showText