Results 1 to 2 of 2

Thread: qtreewidgetitem

  1. #1
    Join Date
    Mar 2011
    Posts
    23
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default qtreewidgetitem

    is there a function like this:

    treeWidgetItem=ui->treeWidget->"funct(row)";

  2. #2
    Join Date
    Jul 2011
    Location
    Brasil
    Posts
    39
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qtreewidgetitem

    Hi,

    You can use treeItem=ui->treeWidget->topLevelItem(row);, and if you want a child item use treeItem->child(index)....

    Here, for more datails: http://doc.qt.nokia.com/latest/qtreewidget.html

    HTH

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

    ahmetturan (24th July 2011)

Similar Threads

  1. Replies: 4
    Last Post: 8th April 2011, 20:59
  2. How to get item position in QTreeWidget?
    By wesley8086 in forum Qt Programming
    Replies: 3
    Last Post: 7th May 2010, 05:28
  3. popupmenu for QTreeWidget's item when a particular item selected.
    By vinod sharma in forum Best Practices in Qt Programming
    Replies: 1
    Last Post: 22nd January 2010, 10:45
  4. Replies: 1
    Last Post: 20th January 2010, 08:38
  5. Get a certain item from a QTreeWidget
    By mace in forum Newbie
    Replies: 2
    Last Post: 28th August 2006, 10:35

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.