PDA

View Full Version : QtTreePropertyBrowser Tooltip on the Property or clickable Property item.



sum_ting_wong
24th November 2014, 05:50
Hi everyone,

I have a bunch of items for a QtTreePropertyBrowser widget and I want to inform the user what each property does by showing a brief message when hovering over it and extended information when clicking the property part. I can set the tooltip for the QtVariantProperty by using setToolTip() but it only shows moment later after hovering over the value part and it disappears awhile later. I was wondering if the following are possible and how would I approach it.

1] Tooltip shows up and stay over the property part of the QtTreePropertyBrowser widget indefinitely.
2] How can I make the property part clickable, so it can show a message box with further information.


Thanks in advance.

anda_skoa
24th November 2014, 08:28
Have you considered WhatsThis style help? http://qt-project.org/doc/qt-5/qwhatsthis.html

Cheers,
_