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. Change font size for Qt Creator side bar?
Forum Update on Monday, May 27th 2025

Change font size for Qt Creator side bar?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.9k Views
  • 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.
  • Q Offline
    Q Offline
    qttester5
    wrote on last edited by
    #1

    I'm having the same issue I had in Xcode: you can change the font size for the editor, but not for some other common text areas in the application. I have bad eyes, and it would be great if I can increase the font size for the file list in the side bar. Anyone know if that is possible? I cannot find any way to do so.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, there's no easy way to do it on OS X, there is no system-wide option to modify the font size used. You might request that feature for QtCreator through the "bug report system":http://bugreports.qt-project.org (use the feature request type)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        thEClaw
        wrote on last edited by
        #3

        Can you use stylesheets with Qt Creator? If that wasn't forcefully removed, it should be possible. So if one knew the name of that sidebar (source code is available!) or at least what it is derived from (maybe QTreeView?), a stylesheet could be used to overwrite its standard presentation.

        Try this:
        QTreeView { font-size: 24px }

        Put it in some file (e.g. file.qss) and launch Qt Creator like this:
        qtcreator.exe -stylesheet=file.qss

        EDIT: I tried it and it actually worked. Question is, whether any other TreeViews are badly influenced by this. But as I said, one can probably get more specific to only influence the sidebar.

        If I misunderstood you and you were talking about a different component of the window, you would have to find out what kind of object it is (just guess, for starters) and replace the "QTreeView" in the example I gave with something else.

        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