Results 1 to 4 of 4

Thread: QInput dialog is always opening twice

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #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

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

    phillip_Qt (13th 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, 10:10
  2. Dialog is not closing
    By manmohan in forum Newbie
    Replies: 5
    Last Post: 1st December 2008, 17:04
  3. Replies: 9
    Last Post: 13th August 2008, 18:07
  4. QGraphicsView: Dialog Position Doubt
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 6th August 2007, 17:48
  5. Opening a Dialog from a MainWindow FileMenu
    By nbkhwjm in forum Newbie
    Replies: 4
    Last Post: 17th April 2007, 12: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
  •  
Qt is a trademark of The Qt Company.