View Poll Results: QTreeWidgetItem

Voters
0. You may not vote on this poll
  • validations

    0 0%
  • items shown

    0 0%
  • items close

    0 0%
Results 1 to 1 of 1

Thread: How to write TreewidgetItem validations

  1. #1
    Join Date
    Oct 2009
    Posts
    35
    Thanks
    12
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11

    Post How to write TreewidgetItem validations

    hi,
    I want to keep below QTreewidgetItem as top position and only one for Treewidget and should have subitems as shown in figure,

    //this item should be at top position (1st treewidgetitem )
    Qt Code:
    1. QTreeWidgetItem *lnx = new QTreeWidgetItem(ui->treeWidget);
    2. lnx->setData(0, Qt::UserRole, "ECLOGIC-LNX");
    3. lnx->setText(0,tr("ECLOGIC-LNX"));
    4. ......................
    5. //remaining part
    To copy to clipboard, switch view to plain text mode 

    validations:
    When ever i want to have another ECLogic-lnx(2nd treewidgetitem) ,the above 1st treewidgetitem has to close automatically and save,and then 2nd treewidgetitem and its subclasses has to shown in the treewidget.
    can you plz tell me how to write the code ?
    Attached Images Attached Images
    Last edited by mkkguru; 1st February 2010 at 12:49.

Similar Threads

  1. Button in TreeWidgetItem
    By osiris81 in forum Qt Programming
    Replies: 3
    Last Post: 16th June 2009, 12:58
  2. toolTip of TreeWidgetItem display is slow
    By yunpeng880 in forum Qt Programming
    Replies: 0
    Last Post: 9th March 2009, 09:35
  3. creating treeWidgetItem using emitted signal from thread class
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2007, 08:37
  4. a question about drag treewidgetItem
    By Alina in forum Qt Programming
    Replies: 2
    Last Post: 15th March 2006, 08:40
  5. a simple question .how to delete a treewidgetitem
    By Alina in forum Qt Programming
    Replies: 6
    Last Post: 20th February 2006, 10:18

Tags for this Thread

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.