qt - What is button property "tooltip" used for? -
I am writing a test application to know what QML is offering. I have created a simple button and tried to make tooltip on mouse hover event. I find many solutions already how this happens () and this is not a problem.
In the documentation, however, I have had to face a button property called The question is, what is the property actually used for? Tooltip needs to be received to get the mouse hover event and it is possible only if your button has any other tooltip . Now I feel that if there is such a property in an underlying component, the tooltip is automated, obviously there is no such thing as nothing has changed by defining the property;
tooltip .
button {id: myButton x: 10 y: 10 text: "click me" tooltip: "some tooltip"}
MouseArea The following example shows the fine tooltip on OS X and Qt 5.2.1:
Import with
hoverEnabled property is not equal to
true QtQuick 2.0 Importing QtQuick.Controls 1.1 Rectangle {Width: 360 Height: 360 Text {anchors.centerIn : Guardian text: "Hello world"} button {id: myButton x: 10 y: 10 text: "click me" tooltip: "some tooltip"}}
Comments
Post a Comment