Results 1 to 6 of 6

Thread: Dialog is not closing

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: Dialog is not closing

    so, the problem is: on_pushButton_clicked() is called twice, because if you use such kind of slot naming on_pushButton_clicked then you don't need to connect it manually, because it will be made automatically. so, in your case two connections were created.
    so, you need to comment these connections
    Qt Code:
    1. connect(pushButton, SIGNAL(clicked()), this, SLOT(on_pushButton_clicked()));
    2. connect(pushButton, SIGNAL(clicked()), this, SLOT(on_pushButton_clicked()));
    To copy to clipboard, switch view to plain text mode 
    or rename slots.
    see this for more details QMetaObject::connectSlotsByName.
    PS. please, use tags CODE.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  2. #2
    Join Date
    Nov 2008
    Posts
    39
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Dialog is not closing

    Thank you very much, I have found this very much help full now the program works well...

  3. #3
    Join Date
    Nov 2008
    Posts
    39
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Re: Dialog is not closing

    May I know a best guide to learn the opengl ???????

Similar Threads

  1. Replies: 9
    Last Post: 13th August 2008, 18:07
  2. Resizing the dialog boxes
    By anju123 in forum Qt Programming
    Replies: 4
    Last Post: 14th September 2007, 10:41
  3. QGraphicsView: Dialog Position Doubt
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 6th August 2007, 17:48
  4. closing dialog in hidden main Widget
    By Lele in forum Qt Programming
    Replies: 3
    Last Post: 6th December 2006, 10:35
  5. Replies: 3
    Last Post: 23rd July 2006, 18:02

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.