PDA

View Full Version : QtTreePropertyBrowser and tooltip



jobrandt
4th October 2009, 15:28
I add this item to a property tree.
QtVariantProperty *item = mvariantManager->addProperty(QVariant::String, "Name");
item->setValue("Value");
item->setToolTip("ToolTip");
mvariantEditor->addProperty(item);

When i move the mouse over the value side the tooltip "ToolTip" is shown correctly. But if i move the mouse over the name side "Name" is shown as the tooltip.

How can i show the same tooltip for both sides(name and value)?

Thanks for the help.

caduel
5th October 2009, 10:43
I guess you can't, really. (At least not using the public API. You can probably do some hack intercepting tooltip events, but I doubt your wish justifies the work...)