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 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 .

The question is, what is the property actually used for?

  button {id: myButton x: 10 y: 10 text: "click me" tooltip: "some tooltip"}    

Tooltip needs to be received to get the mouse hover event and it is possible only if your button has any other 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

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -