Results 1 to 3 of 3

Thread: How can i open a dialog when clicked on treewidget?

  1. #1
    Join Date
    Apr 2009
    Location
    İstanbul, Türkiye
    Posts
    26
    Thanks
    1

    Default How can i open a dialog when clicked on treewidget?

    i have a qdialog. And i want to open this dialog when clicked on treewidget or focus on treewidget.. not clicked on treewidgetitem...

    how can i do it?

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How can i open a dialog when clicked on treewidget?

    come on! what is the reason of duplicating threads?!!!
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How can i open a dialog when clicked on treewidget?

    try installing the event filter on tree widget's viewport and open dialog on interesting events for you.
    Last edited by faldzip; 4th May 2009 at 11:25.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. Replies: 1
    Last Post: 17th July 2008, 14:42
  2. Replies: 10
    Last Post: 6th July 2008, 09:46
  3. File Open dialog with preview?
    By will49 in forum Qt Programming
    Replies: 2
    Last Post: 24th July 2007, 18:08
  4. Replies: 3
    Last Post: 13th May 2007, 20:55
  5. dialog box
    By Bahar in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2006, 14: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.