Results 1 to 3 of 3

Thread: read selected row in treeWidget

  1. #1
    Join Date
    Oct 2010
    Posts
    6
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default read selected row in treeWidget

    Dear all!
    i have a treewidget display data from xml file as picture below


    how do show full information at row i selected in the same treewidget.
    Qt Code:
    1. connect(treeWidget, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), this, SLOT(openItem()));
    2.  
    3.  
    4. void MainWindow::openItem()
    5. {
    6. treeWidget->clear();
    7. [COLOR="red"]//what should i do at here[/COLOR]
    8.  
    9. }
    To copy to clipboard, switch view to plain text mode 

    thanks and best regards.
    Newbie.

  2. #2
    Join Date
    Oct 2010
    Posts
    6
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: read selected row in treeWidget

    nobody helps me

  3. #3
    Join Date
    Oct 2010
    Posts
    6
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: read selected row in treeWidget

    so sad

Similar Threads

  1. Replies: 2
    Last Post: 18th May 2010, 22:44
  2. How to add subitem in treewidget
    By phillip_Qt in forum Qt Programming
    Replies: 11
    Last Post: 16th November 2009, 11:22
  3. Problem with Treewidget
    By addu in forum Qt Programming
    Replies: 1
    Last Post: 30th June 2009, 09:24
  4. How to set the sizehint for treeWidget
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2007, 11:35
  5. Name of TableWidget/TreeWidget
    By ankurjain in forum Qt Programming
    Replies: 8
    Last Post: 15th April 2006, 05:36

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.