Results 1 to 3 of 3

Thread: Highlight the Qmenu/QmenuBar in Qt

  1. #1
    Join Date
    Sep 2013
    Posts
    40
    Thanks
    6
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Post Highlight the Qmenu/QmenuBar in Qt

    Dear All,

    I am creating an application in which I want the menu to be highlighted with specific letter in that word(in menu) to be underlined, Same as it is present in Windows.
    Please find screen attached for the reference.Untitled.jpg
    P.S. This should happen after ALT is pressed.
    Any help will be appreciated.

    Thanks in Advance,
    Rohit
    Last edited by rohitkk; 28th April 2014 at 14:39.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Highlight the Qmenu/QmenuBar in Qt

    Put a & character in front of the letter that you want highlighted.

    Cheers,
    _

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

    rohitkk (30th April 2014)

  4. #3
    Join Date
    Sep 2013
    Posts
    40
    Thanks
    6
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Highlight the Qmenu/QmenuBar in Qt

    Thank You so much ,that works absolutely fine..!!

Similar Threads

  1. Add QMenuBar into QWidget
    By Cucus in forum Newbie
    Replies: 4
    Last Post: 3rd May 2014, 10:49
  2. QMenuBar and QMenu colors
    By Raadush in forum Qt Programming
    Replies: 1
    Last Post: 29th May 2012, 12:19
  3. how to add seperator into QMenuBar?
    By josentop in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2011, 15:11
  4. QMenuBar and QMenu
    By thedoctor in forum Qt Programming
    Replies: 0
    Last Post: 21st December 2009, 22:01
  5. How do you add a QActionGroup to a QMenuBar?
    By grantbj74 in forum Newbie
    Replies: 1
    Last Post: 10th August 2009, 06:43

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.