Results 1 to 3 of 3

Thread: How to override system shortcut left Alt+Space

  1. #1
    Join Date
    Sep 2008
    Location
    Poland
    Posts
    80
    Thanks
    4
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default How to override system shortcut left Alt+Space

    Hi Brothers

    As in topic-how to do it?
    Reimplementing QApplication::event(),QApplication::winEventFilter (),installing an event filter on QAbstractEventDispatcher::instance() didn't help

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to override system shortcut left Alt+Space

    On Windows, you would capture the WM_SYSCOMMAND windows message. If WParam == SC_KEYMENU, then ALT+SPACE has been pressed. You can then process that message yourself or allow normal processing by passing it on.

    You would capture the message typically by overriding WndProc. I'm not sure if there's a Qt way of doing that.

  3. #3
    Join Date
    Sep 2008
    Location
    Poland
    Posts
    80
    Thanks
    4
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to override system shortcut left Alt+Space

    It seems to be,this is that QApplication::winEventFilter ()
    I tried that way,but I used WM_SYSKEYDOWN instead of WM_SYSCOMMAND.I gonna to check this out.

    Thanks for the Brother hint fatjucymole!

Similar Threads

  1. override shortcut icon in QToolBar
    By sudhansu in forum Qt Programming
    Replies: 1
    Last Post: 18th February 2010, 08:20
  2. QTableView empty space or too little space.
    By davemar in forum Qt Programming
    Replies: 2
    Last Post: 16th October 2009, 16:00
  3. Replies: 1
    Last Post: 26th July 2009, 15:08
  4. space left command?
    By mhoover in forum General Discussion
    Replies: 1
    Last Post: 27th July 2006, 03:34
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

Tags for this Thread

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.