Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Toolbar (text under icons) font size.
Qt 6.11 is out! See what's new in the release blog

Toolbar (text under icons) font size.

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 4.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello!
    Is there any common way to change font size and font family of text placed under icons on toolbars in Qt apps?
    Just take a look into how GTK toolbars can be done (via css theming) compared to Qt app (Luminance HDR).

    http://dl.dropbox.com/u/12196364/screenshot.png

    !http://dl.dropbox.com/u/12196364/screenshot.png(screenshot)!

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      Have you tried to modify the font size of QToolBar by "setting a style":http://qt-project.org/doc/qt-4.8/qwidget.html#styleSheet-prop ?

      http://anavi.org/

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Have you tried setFont on the tool bar?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Also, Qt supports CSS-style theming as well. I bet it works on toolbars too!

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved