Results 1 to 20 of 42

Thread: QTreeWidget clicked signal

Threaded View

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

    Default Re: QTreeWidget clicked signal

    plz go through the below code and before posted code........
    Qt Code:
    1. void xxx::showItem(QTreeWidgetItem* item)
    2.  
    3. {
    4.  
    5. if(item == lnx)
    6.  
    7. {
    8.  
    9. ECLogic_Lnx=new eclogic_lnx(main_tab_widget);
    10.  
    11. ECLogic_Lnx->setWindowTitle(QString("ECLOGIC-LNX"));
    12.  
    13. ECLogic_Lnx->show();
    14.  
    15. }
    16.  
    17. else
    18.  
    19. if(item == plc)
    20.  
    21. tab_3=new QTabBar(main_tab_widget);
    22.  
    23. PLCconfig=new plcconfiguration(tab_3);
    24.  
    25. PLCconfig->setWindowTitle(QString("PLC"));
    26.  
    27. main_tab_widget->insertTab(0,tab_3,QString("PLC"));
    28.  
    29. tab_3->setCurrentIndex(main_tab_widget->indexOf(tab_3));
    30.  
    31. PLCconfig->show();
    32.  
    33. }
    To copy to clipboard, switch view to plain text mode 

    while iam using if(........) condition the other windows(plc,pvc,....)has to open when i click the treewidgetitems like PLC,ECLOGIC-LNX........but the condition is not working correctly
    Last edited by wysota; 27th January 2010 at 10:20. Reason: Missing [code] tags

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.