Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, October 2007
QSystemTrayIcon and Widnows 98 shutdown


Message 1 in thread

Hi!

I wrot a simple program which uses QSystemTrayIcon but I have problem with it 
on Windows 98. When the program is running it prevents Windows 98 from 
shutting it down. I can click on Start->Shut Down but nothing happens... What 
should I change to make my program works in a normall way?

Here's a simplest program with such described behaviour:

#include <QApplication>
#include <QIcon>
#include <QSystemTrayIcon>

int main (int argc, char *argv[])
{
        QApplication *app = new QApplication(argc, argv);
        app->setQuitOnLastWindowClosed(false);

        QSystemTrayIcon *tray = new QSystemTrayIcon(QIcon("tray.png"));
        tray->show();

        int res = app->exec();
        delete tray;
        delete app;

        return res;
}

Best regards,
-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: This is a digitally signed message part.