QtMvvm  1.1.0
A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel
RoundActionButton.qml
1 import QtQuick 2.10
2 import QtQuick.Controls 2.3
3 import de.skycoder42.QtMvvm.Quick 1.1
4 
14 RoundButton {
15  id: _roundButton
16 
18  property string toolTip: _roundButton.text
19 
20  display: AbstractButton.IconOnly
21  highlighted: true
22 
23  implicitHeight: 56 + padding
24  implicitWidth: 56 + padding
25 
26  icon.width: 24
27  icon.height: 24
28 
29  ToolTip.visible: pressed && _roundButton.toolTip != ""
30  ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
31  ToolTip.text: _roundButton.toolTip
32 
33  onPressAndHold: {
34  if(_roundButton.toolTip !== "")
36  }
37 }
static void hapticLongPress()
Performs haptic feedback of a long press (Android only)
The QML import for the QtMvvmQuick QML module.
Definition: ActionButton.qml:4
A QML singleton to access common presenter methods globally.