Results 1 to 3 of 3

Thread: Suppress window system menu

  1. #1
    Join Date
    Aug 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Suppress window system menu

    I used the Qt::FramelessWindowHint to hide the window title and border, but the user can still display the system menu using Alt-Space (at least on X11). Is there any way to prevent that?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Suppress window system menu

    You can try to catch that event with the keyPressEvent handler.

  3. #3
    Join Date
    Aug 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Suppress window system menu

    Quote Originally Posted by Lykurg View Post
    You can try to catch that event with the keyPressEvent handler.
    I am not sure it is possible to catch system keyboard shortcuts, but even if it is, can I be sure that the key combination will be the same on all window managers? Probably not. I would like a more robust solution.

Similar Threads

  1. Replies: 5
    Last Post: 6th November 2012, 20:42
  2. Get system (context) menu
    By xylosper in forum Qt Programming
    Replies: 0
    Last Post: 5th April 2009, 11:52
  3. Move the menuBar() to the system menu
    By jlbrd in forum Qt Programming
    Replies: 3
    Last Post: 6th March 2009, 10:38
  4. Using QT for Digital TV menu system?
    By mittalpa in forum Newbie
    Replies: 4
    Last Post: 2nd July 2008, 19:23
  5. How to change system menu of window?
    By krivenok in forum Qt Programming
    Replies: 1
    Last Post: 27th January 2006, 15:19

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.