Results 1 to 6 of 6

Thread: Button shortcut call an element in the menu

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Posts
    55
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Button shortcut call an element in the menu

    Thanks for replying, but my problem now is on Windows. In the menu I've an element witch have CTRL+I as shortcut but in a dialog when I try to call a button with its ALT+I shortcut, always it is the element in the menu how is called.
    I dont understund how work the shortcuts in Qt.
    Can anyone telle how to do and resolve this problem

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Button shortcut call an element in the menu

    Mnemonics override shortcuts, don't they? Most likely you have a menu item with name including "&I".
    J-P Nurmi

  3. #3
    Join Date
    Mar 2008
    Posts
    55
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Button shortcut call an element in the menu

    I've tried without the source code adding the shortcuts. But always I've the same result. when I open a dialog and do ALT+I, this activate the element in the menu which have the CTRL+I shortcut !. Note that I've used QAction for the element in the menu. Is this can affect the function of shortcuts? If this is true, what I must to do?
    Best regards.

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.