Results 1 to 4 of 4

Thread: QInput dialog is always opening twice

  1. #1
    Join Date
    Oct 2007
    Posts
    201
    Thanks
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QInput dialog is always opening twice

    Hi All
    I'm writing an application, where i've a tree widget. on right click that widget a pop up menu should come which ll having 2 option (add class, and add computer). if i click on add class a QInputDialog ll appear which ll ask the name of classroom. But while right click on the tree widget, it is not triggering the context menu 1st time. and if u select the context menu again it ll open QInputDialog 2 times, for 3rd time triggering in context menu it ll be opened the QInputDialog 3 times, and so on. I'm help less, could nt find the problem. I've attched the code. Can any body help me.? I'll be thankful. Plz help.
    Attached Files Attached Files
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QInput dialog is always opening twice

    Quote Originally Posted by phillip_Qt View Post
    Hi All
    I'm writing an application, where i've a tree widget. on right click that widget a pop up menu should come which ll having 2 option (add class, and add computer). if i click on add class a QInputDialog ll appear which ll ask the name of classroom. But while right click on the tree widget, it is not triggering the context menu 1st time. and if u select the context menu again it ll open QInputDialog 2 times, for 3rd time triggering in context menu it ll be opened the QInputDialog 3 times, and so on. I'm help less, could nt find the problem. I've attched the code. Can any body help me.? I'll be thankful. Plz help.
    I corrected your code.
    Please find the attached modified file.
    Attached Files Attached Files

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

    phillip_Qt (13th November 2009)

  4. #3
    Join Date
    Oct 2007
    Posts
    201
    Thanks
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QInput dialog is always opening twice

    Quote Originally Posted by yogeshgokul View Post
    I corrected your code.
    Please find the attached modified file.
    Thank you very much yoesh. It is really a kind help.
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

  5. #4
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QInput dialog is always opening twice

    Quote Originally Posted by phillip_Qt View Post
    Thank you very much yoesh. It is really a kind help.
    Have Beer

  6. The following user says thank you to yogeshgokul for this useful post:

    phillip_Qt (16th November 2009)

Similar Threads

  1. Issue with Modelless dialog on Mac
    By Satyanarayana Chebrolu in forum Qt Programming
    Replies: 0
    Last Post: 24th February 2009, 11:10
  2. Dialog is not closing
    By manmohan in forum Newbie
    Replies: 5
    Last Post: 1st December 2008, 18:04
  3. Replies: 9
    Last Post: 13th August 2008, 19:07
  4. QGraphicsView: Dialog Position Doubt
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 6th August 2007, 18:48
  5. Opening a Dialog from a MainWindow FileMenu
    By nbkhwjm in forum Newbie
    Replies: 4
    Last Post: 17th April 2007, 13:24

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.