Results 1 to 12 of 12

Thread: How can i add some description about current QtreeWidgetItem inside QtreeWidgetItem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Apr 2011
    Location
    Russia
    Posts
    85
    Thanks
    2
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How can i add some description about current QtreeWidgetItem inside QtreeWidgetIt

    Qt Code:
    1. ...
    2. connect( tree, SIGNAL(clicked(QModelIndex)), this, SLOT(slotShowProp(QModelIndex)) );
    3. ...
    4. slotShowProp( QModelIndex index )
    5. {
    6. index.data( Qt::DisplayRole ); - text
    7. index.data( Qt::DecorationRole ); - icon
    8. etc..........
    9. }
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to Jonny174 for this useful post:

    vinayaka (2nd March 2012)

Similar Threads

  1. Resizing a QTreeWidgetItem with a widget inside
    By NullPointer in forum Newbie
    Replies: 1
    Last Post: 16th January 2012, 02:20
  2. Replies: 5
    Last Post: 23rd September 2010, 13:58
  3. PyQt remove the current QTreeWidgetItem
    By koenux in forum Qt Programming
    Replies: 2
    Last Post: 10th January 2009, 23:08
  4. QTreeWidgetItem ?
    By allensr in forum Qt Programming
    Replies: 5
    Last Post: 3rd January 2007, 17:51
  5. QTreeWidgetItem
    By Sarma in forum Qt Programming
    Replies: 1
    Last Post: 6th April 2006, 19:52

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
  •  
Qt is a trademark of The Qt Company.