Results 1 to 3 of 3

Thread: How to show my toolTip in QTreeWidget?

  1. #1
    Join Date
    Mar 2009
    Location
    Nanjing,China
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default How to show my toolTip in QTreeWidget?

    I use the setToolTip in QTreeWidgetItem,but it didn't work well.
    how could i do to show the toolTip?

    and, my QTreewidget is refresh in 0.5sec,if the tooltip sdisplay,how could it still show?

    thanks

  2. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    658
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to show my toolTip in QTreeWidget?

    are u trying like this ...
    QPoint value(x, y)
    QString text = "text";
    QToolTip::showText(value, text);

  3. #3
    Join Date
    Mar 2009
    Location
    Nanjing,China
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to show my toolTip in QTreeWidget?

    where to user those code?
    I just user like this:
    Qt Code:
    1. //...
    2. item->setToolTip(i,QString("My ToolTip Text"));
    To copy to clipboard, switch view to plain text mode 

    and my Qt version is Qt4.3.2

Similar Threads

  1. Filling QTreeWidget / Using QTreeView
    By stefanborries in forum Qt Programming
    Replies: 1
    Last Post: 15th April 2009, 16:25
  2. how kd chart's data to show tooltip?
    By yunpeng880 in forum Qt Programming
    Replies: 0
    Last Post: 16th March 2009, 07:27
  3. Extended Tooltip
    By aamer4yu in forum Qt Programming
    Replies: 12
    Last Post: 26th July 2008, 12:18
  4. Hot to set the tooltip of button
    By santosh.kumar in forum Qt Programming
    Replies: 3
    Last Post: 1st November 2007, 13:07
  5. resizing a QTreeWidget
    By drhex in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2006, 23:32

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.