Results 1 to 4 of 4

Thread: Window title bar and "X" button

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Window title bar and "X" button

    Although there's no direct way to tell that, you can use QEvent::spontaneous() to see if the event came from outside the app. Since the title bar is being managed by the platform window manager it seems logical that a QCloseEvent issued by pressing the close button will be spontaneous. If my assumption is true then you can figure out how to use the value of QEvent::spontaneous().

  2. The following user says thank you to marcel for this useful post:

    markcole (20th December 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
  •  
Qt is a trademark of The Qt Company.