Results 1 to 2 of 2

Thread: ways to exit appl.

  1. #1
    Join Date
    Jan 2006
    Location
    Kranj, Slovenia
    Posts
    34
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default ways to exit appl.

    Hi!
    I am stuck. I want the program to save certain data and clear some files at exit. I know how to do that using a PushButton (save data, delete files, exit). But I have no idea how to do that if a user presses X button in the top right corner of the window (Windows, but I think other OS have similar GUI).
    Can somebody please at least point me in the right direction?

    TNX,
    Luka

  2. #2
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Thanks
    37
    Thanked 53 Times in 40 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: ways to exit appl.

    Implement closeEvent() in your main widget. Check out this too.
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

  3. The following user says thank you to Gopala Krishna for this useful post:

    whoops.slo (29th January 2007)

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.