Results 1 to 3 of 3

Thread: spontaneous events

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Location
    Greece, Chania
    Posts
    63
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanked 11 Times in 11 Posts

    Default Re: spontaneous events

    I made the following observation on Windows. When I terminate the task through task manager or press the "x" button it returns true and when the app terminates with a close() it returns false.
    Anyway, I think it may has something to do with the signals the OS emits, SIGTERM, SIGKILL and SIGINT and how they make the application close. Not sure though and also curious about what's happening!!
    Misha R.evolution - High level Debugging IDE

    Programming is about 2 basic principles: KISS and RTFM!!!

  2. #2
    Join Date
    Nov 2008
    Posts
    33
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    5

    Default Re: spontaneous events

    When I terminate the task through task manager or press the "x" button it returns true

    Thanks for that. It's clearly not consistent behaviour across platforms then. I tried investigating behaviour in response to signals (other than SIGKILL) but they never propagate to a closeEvent. I think I need to work at Session or Application level to do this properly.

    Bob

Similar Threads

  1. Qt...Using Events
    By Peppy in forum Qt Programming
    Replies: 5
    Last Post: 27th December 2009, 09:41
  2. Events
    By T0bi4s in forum Newbie
    Replies: 16
    Last Post: 25th November 2009, 22:09
  3. Events
    By SV in forum Qt Programming
    Replies: 0
    Last Post: 21st May 2008, 08:48
  4. QT Events
    By Sreeja in forum Qt Tools
    Replies: 1
    Last Post: 20th November 2006, 08:25
  5. Events - how to
    By eleanor in forum Newbie
    Replies: 2
    Last Post: 13th November 2006, 07:23

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
  •  
Qt is a trademark of The Qt Company.