Results 1 to 2 of 2

Thread: QMessageBox problem

  1. #1
    Join Date
    Aug 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default QMessageBox problem

    Hi, I have a little problem.. My code looks like this:

    Qt Code:
    1. program is hidden in systray
    2. constructor with timer
    3. timer function
    4. here is qmessagebox->show()
    To copy to clipboard, switch view to plain text mode 

    and the problem is, when i click OK on the messagebox, it quits program.. so, how can i do it right? thx

  2. #2
    Join Date
    Jun 2009
    Location
    Kraków, Poland
    Posts
    23
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QMessageBox problem

    try adding
    Qt Code:
    1. QApplication::setQuitOnLastWindowClosed(false);
    To copy to clipboard, switch view to plain text mode 
    in main.cpp.

Similar Threads

  1. QMessageBox & QCheckBox problem
    By THRESHE in forum Qt Programming
    Replies: 4
    Last Post: 10th June 2010, 10:23
  2. QMessageBox
    By sonuani in forum Qt Programming
    Replies: 13
    Last Post: 2nd September 2009, 17:56
  3. QMessageBox
    By sonuani in forum Qt Programming
    Replies: 1
    Last Post: 31st March 2008, 08:27
  4. QMessageBox problem in Qtopia
    By jogeshwarakundi in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 8th February 2008, 09:22
  5. how to use tr() for QMessageBox?
    By gfunk in forum Qt Programming
    Replies: 4
    Last Post: 17th November 2007, 11:30

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.