moment/harmonyqml/ToolTipLabel.qml

17 lines
333 B
QML
Raw Normal View History

2019-03-22 14:28:14 +11:00
import QtQuick 2.7
import QtQuick.Controls 2.0
PlainLabel {
id: text
ToolTip {
delay: Qt.styleHints.mousePressAndHoldInterval
visible: text ? toolTipZone.containsMouse : false
text: user_id
}
MouseArea {
id: toolTipZone
anchors.fill: parent
hoverEnabled: true
}
}