Results 1 to 2 of 2

Thread: QActions don't work with menubar hidden

  1. #1
    Join Date
    Mar 2007
    Posts
    58
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default QActions don't work with menubar hidden

    I'm porting my app to Qt 4.

    I found a serious problem. When the menubar is hidden, the QActions don't work.

    I just create QActions, some QMenus where I add the actions, and finally I add the menus to the main window menubar.

    The key shortcuts work as long as the menubar is visible, but if I hide it then they don't work.

    My app is a videoplayer, so of course I have to hide the menubar in fullscreen mode.

    Previously, with Q3Actions, the shortcuts worked ok with the menubar hidden.

    I already tried with setShortcutContext(Qt::ApplicationShortcut) but no way, it doesn't work

    How can I get the same behaviour of Q3Action? Without that, my app is useless!

  2. #2
    Join Date
    Mar 2007
    Posts
    58
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QActions don't work with menubar hidden

    Fixed by adding the QActions to the main window.

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.