DisplayHint Class

Hints for implementations using Actions indicating preferences about how to display the action. More...

Header: #include <DisplayHint>
Inherits: QObject

Static Public Members

bool isDisplayHintSet(DisplayHint::DisplayHints values, DisplayHint::Hint hint)

Detailed Description

\qmlsingletontypeDisplayHint

This is a singleton type.

Possible hint values are:

  • NoPreference: Indicates there is no specific preference.
  • IconOnly: Only display an icon for this Action
  • KeepVisible: Try to keep the action visible even when space constrained. Mutually exclusive with AlwaysHide, KeepVisible has priority.
  • AlwaysHide: If possible, hide the action in an overflow menu or similar location. Mutually exclusive with KeepVisible, KeepVisible has priority.
  • HideChildIndicator: When this action has children, do not display any indicator (like a menu arrow) for this action.

Member Function Documentation

[static] bool DisplayHint::isDisplayHintSet(DisplayHint::DisplayHints values, DisplayHint::Hint hint)

Static version of displayHintSet(DisplayHints, Hint) that can be called from C++ code.