views:

75

answers:

1

I'm running a QT app (VS2005) and have spawned a dialog from that app, but if I add a cancel button to that dialog with a reject() slot then yes, the dialog closes and returns the correct result but my whole app closes down as well.

This is annoying me and I can't find any hint as to why; any suggestions gratefully recieved

+2  A: 

Perhaps look at setting this:

http://doc.trolltech.com/4.5/qapplication.html#quitOnLastWindowClosed-prop

to false?

If that doesn't work, make sure you haven't got any signal / slot connections you may have forgotten about.

Thomi