Results 1 to 8 of 8

Thread: MenuBar grabs the focus on ALT pressed.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Location
    Bangalore, India
    Posts
    38
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: MenuBar grabs the focus on ALT pressed.

    Okey,

    I have one more problem related with ALT Key.

    In my application whereby the Alt key is supposed to be pressed to
    enable display of underlined characters in Menu Bar.

    Preferred behavior is for underlined letters which signify hot keys to be
    visible at all times independent of ALT key pressed.

    Is there any solution for this issue.?!
    WINNERS DON`T D DIFFERENT THINGS THEY D THINGS differently.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: MenuBar grabs the focus on ALT pressed.

    Quote Originally Posted by Cutey View Post
    Preferred behavior is for underlined letters which signify hot keys to be
    visible at all times independent of ALT key pressed.
    Configure your windows to show them. In "display" properties there's a "Appearance" tab with "Effects" button (the actual names might be different, because I have a Polish version).

  3. #3
    Join Date
    Dec 2006
    Location
    Bangalore, India
    Posts
    38
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: MenuBar grabs the focus on ALT pressed.

    Hi Jacek,

    Thanks for your valuable suggestion.

    Quote Originally Posted by jacek View Post
    Configure your windows to show them. In "display" properties there's a "Appearance" tab with "Effects" button.
    But I would like to do it by the code.
    For Example, In VC++ main window MenuBar you can see the underlined letters which signify hot keys visible at all times independent of the above property change.!!
    WINNERS DON`T D DIFFERENT THINGS THEY D THINGS differently.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: MenuBar grabs the focus on ALT pressed.

    Quote Originally Posted by Cutey View Post
    For Example, In VC++ main window MenuBar you can see the underlined letters which signify hot keys visible at all times independent of the above property change.!!
    It only means that it is badly implemented as it tries to be smarter than the user who should know whether he likes/wants the behaviour or not. You should think twice before trying to be too smart too.

    If you insist on implementing such behaviour, you'll have to subclass QMenu and do the highlighting yourself.

Similar Threads

  1. Tab/Enter focus problem
    By b1 in forum Qt Programming
    Replies: 4
    Last Post: 23rd October 2006, 23:34

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.