Results 1 to 2 of 2

Thread: QMenuBar Text Update

  1. #1
    Join Date
    Dec 2016
    Posts
    37
    Qt products
    Qt5
    Platforms
    Windows

    Default QMenuBar Text Update

    Hello. I am trying to update the font of QMenuBar and QAction at runtime. I am able to do this for QAction using setFont, but using setFont with QMenuBar has no affect on the QMenuBar's text?

    Is this something you can do in Qt? If so, how do you do it?

    thanks.

    t

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QMenuBar Text Update

    It would surprise me if it did do something since a menu bar has no text of its own, its nothing more than a container for menus.
    Try setting the font to the menus them selves.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Update form when change in Pushbutton text
    By vinithr in forum Newbie
    Replies: 11
    Last Post: 14th June 2012, 06:56
  2. QFileSystemModel - Incremental update/pre-emptive update
    By johnnyturbo3 in forum Qt Programming
    Replies: 0
    Last Post: 2nd September 2011, 13:56
  3. Text appears under the icon in QMenubar, how to?
    By Kevin Hoang in forum Qt Programming
    Replies: 1
    Last Post: 28th January 2011, 11:56
  4. Replies: 2
    Last Post: 29th September 2010, 17:44
  5. Replies: 2
    Last Post: 8th April 2010, 16:16

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.