Results 1 to 3 of 3

Thread: Boss-key?

  1. #1
    Join Date
    Aug 2010
    Posts
    7
    Thanks
    8

    Question Boss-key?

    I'm trying to make a boss key for my program, which is a global hot key used for activeing or hiding all windows of my program, whether the program is active.

    I searched about this kind of hot key, it needs WIN32 API RegisterHotKey() .

    But the problem is that my program may have more than one windows at one time, and how can I make a function to handle these windows? I cannot write RegisterHotKey() to each window.

    Anyway,thanks...

  2. #2
    Join Date
    Aug 2007
    Posts
    166
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    16
    Thanked 14 Times in 14 Posts

    Default Re: Boss-key?

    For cross-platform hot key: http://doc.libqxt.org/0.6.0/qxtglobalshortcut.html

    For your second question: QApplication::topLevelWidgets()

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

    liuyanghejerry (26th August 2010)

  4. #3
    Join Date
    Aug 2010
    Posts
    7
    Thanks
    8

    Default Re: Boss-key?

    Quote Originally Posted by The Storm View Post
    For cross-platform hot key: http://doc.libqxt.org/0.6.0/qxtglobalshortcut.html

    For your second question: QApplication::topLevelWidgets()
    Wow, what a cool extension it is!

    Thanks, really^^

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.