Results 1 to 2 of 2

Thread: QMessageBox

  1. #1
    Join Date
    Feb 2008
    Posts
    47
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Post QMessageBox

    hi,
    I give a QDialog ui....When i press enter immediately a MessageBox displays with ok button.If i again press enter the messagebox disappears.but my requirement is...
    When i press enter, the messagebox and its parent window should disappear.
    How to do that??
    Thanks

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QMessageBox

    Call QDialog::accept() or QDialog::reject() after the control returns from QMessageBox::exec().
    J-P Nurmi

Similar Threads

  1. Re: Help on QMessageBox
    By arunvv in forum Newbie
    Replies: 2
    Last Post: 25th March 2008, 23:45
  2. QMessageBox problem in Qtopia
    By jogeshwarakundi in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 8th February 2008, 09:22
  3. QHBoxLayout and QMessageBox error
    By zorro68 in forum Qt Programming
    Replies: 12
    Last Post: 7th February 2008, 10:57
  4. QMessageBox - no dialog title on Mac OS?
    By will49 in forum Qt Programming
    Replies: 1
    Last Post: 8th October 2007, 14:07
  5. customize the Icon QMessageBox
    By QiT in forum Newbie
    Replies: 1
    Last Post: 26th August 2006, 10:40

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.