Results 1 to 2 of 2

Thread: Tool Tip on mouse move in QTreeWidget?

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Tool Tip on mouse move in QTreeWidget?

    Hi All,

    I m using Qt 4.1.5 on my MAC.
    I have a QTreeWidget which is on the Left side of my QMainWindow.
    I have some Item on this treeWidget and I want when user move mouse on a perticular Item it show the Text of that TreeWidgetItem in the tooltip and so..on.

    If any body knows how I can do this then plz help me out.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Tool Tip on mouse move in QTreeWidget?

    Simple, you should check the QTreeWidgetItem docs ;-)
    This should work :
    Qt Code:
    1. item->setToolTip(column_index, item->text(column_index));
    To copy to clipboard, switch view to plain text mode 
    Guilugi.

  3. The following user says thank you to guilugi for this useful post:

    vishal.chauhan (27th June 2007)

Similar Threads

  1. Mouse Move Event
    By merry in forum Newbie
    Replies: 5
    Last Post: 3rd June 2007, 06:26
  2. Move Rectangle on mouse Move
    By vermarajeev in forum Qt Programming
    Replies: 24
    Last Post: 14th May 2007, 05:34
  3. how to display full tree item name on mouse move ?
    By rajesh in forum Qt Programming
    Replies: 5
    Last Post: 15th November 2006, 08:41

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.