For a project we are trying to implement some extended tooltip functionality, such as dynamically enabling / disabling tooltips and editing the display time of a tooltip.
According to the help-file, this should be easily done: the function toolTipDuration should be able to edit display time.
Description
Specifies how long a tooltip is shown. The time is specified in milliseconds. If the duration value is -1, the duration is calculated depending on the length of the tooltip.
Assignment
Simple graphics objects: plain text, line, free line, polyline, arc, ellipse, frame;
Complex graphics objects: cascade, button, check box, option box, combo box, selection list, text field, spin-button;
Code: Select all
main()
{
this.toolTipText("This is a tooltip");
int t = 1000;
this.toolTipDuration(t);
}There is a workaround, using the QT stylesheet. The snippet changes the tooltip duration of QT graphics and works like a charm:
Code: Select all
* { qproperty-toolTipDuration: 1000;}Is there any way I can edit the tooltip duration for simple graphic objects, as described in the helpfile? (currently running 3.16P015)