Fluid 1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
RichToolTip Class Reference

An actionable Material Design 3 Expressive tooltip. More...

Inheritance diagram for RichToolTip:

Detailed Description

An actionable Material Design 3 Expressive tooltip.

RichToolTip presents a body with an optional headline and zero, one, or two actions. Set headline to an empty string to omit it. The length of actions selects the button count; actions after the first two are ignored with a warning. The second button wraps when both do not fit.

The inherited text property stores the body and is also exposed as body. Actions use Action so their text, enabled state, shortcuts, and triggered signal remain reusable. Fluid renders them as Material text buttons, gives the first enabled action focus when the popup opens, and closes the tooltip after activation.

MD.RichToolTip {
id: formattingTip
parent: formattingButton
headline: qsTr("Formatting")
body: qsTr("Choose how the selected text is emphasized.")
actions: [
MD.Action { text: qsTr("Learn more"); onTriggered: openHelp() },
MD.Action { text: qsTr("Dismiss") }
]
}
Describes a reusable Fluid action.
Definition Action.qml:30

For more information see the Material Design 3 tooltip guidelines.

Definition at line 37 of file RichToolTip.qml.


The documentation for this class was generated from the following file: