Results 1 to 2 of 2

Thread: QtTreePropertyBrowser and tooltip

  1. #1
    Join Date
    Feb 2007
    Posts
    28
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default QtTreePropertyBrowser and tooltip

    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.

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QtTreePropertyBrowser and tooltip

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

Similar Threads

  1. how kd chart's data to show tooltip?
    By yunpeng880 in forum Qt Programming
    Replies: 0
    Last Post: 16th March 2009, 06:27
  2. toolTip of TreeWidgetItem display is slow
    By yunpeng880 in forum Qt Programming
    Replies: 0
    Last Post: 9th March 2009, 09:35
  3. Extended Tooltip
    By aamer4yu in forum Qt Programming
    Replies: 12
    Last Post: 26th July 2008, 11:18
  4. Displaying tooltip for points in the graph
    By Ankitha Varsha in forum Qt Programming
    Replies: 4
    Last Post: 29th January 2008, 11:08
  5. Hot to set the tooltip of button
    By santosh.kumar in forum Qt Programming
    Replies: 3
    Last Post: 1st November 2007, 12:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.