Results 1 to 3 of 3

Thread: QMessageBox::warning() problem in closing this window?????

  1. #1
    Join Date
    Jul 2012
    Posts
    24
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default QMessageBox::warning() problem in closing this window?????

    Hi
    I have written a code but I feel it does not work properly as I want.
    QMessageBox::critical(this,"Error" , " GAME OVER " , QMessageBox::Close);

    I want my application to Close totally after I push the Close button but I does not work that way!
    waht should I do about it?

    my another question is that I have changed the background but the background of my message box has changed too , I do not know why?

    thanx for ur upcoming answers

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QMessageBox::warning() problem in closing this window?????

    Is that all the code? It only shows a message box.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QMessageBox::warning() problem in closing this window?????

    Use this----->

    void QMessageBox::buttonClicked
    ( QAbstractButton * button ) [signal]

    This signal is emitted whenever a button is clicked inside the QMessageBox. The button that was clicked in returned in button.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

  4. The following user says thank you to sonulohani for this useful post:

    mahsa (28th July 2012)

Similar Threads

  1. closing dialog window
    By sksingh73 in forum Newbie
    Replies: 1
    Last Post: 21st June 2010, 22:27
  2. Replies: 5
    Last Post: 21st April 2010, 21:36
  3. Mouse Freezes upon using QmessageBox::warning function.
    By kaushal_gaurav in forum Qt Programming
    Replies: 4
    Last Post: 18th June 2008, 05:50
  4. closing of window on pressing ESC key
    By raghvendramisra in forum Newbie
    Replies: 2
    Last Post: 7th January 2008, 02:36
  5. Replies: 3
    Last Post: 25th April 2007, 12:43

Tags for this Thread

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.