Qt Creator: is it possible to change the font size of the side bar?



  • I like having the side bar open in Qt Creator, but it takes up just enough horizontal screen space that it makes it impractical for me to split my main window vertically into two editors. Is it possible for me to change the text font the side bar uses so that it renders with a smaller, perhaps narrower font?

    Also, is there any way to hide or narrow the left margin of the text editor? (i.e. the space for setting breakpoints.) It's something I rarely ever use and all I want to reclaim all the horizontal screen space I can.



  • I discovered that this is possible using a custom style sheet with Qt Creator. Information was in this thread: https://forum.qt.io/topic/32243/change-font-size-for-qt-creator-side-bar/3

    However, I also found that if I used a condensed font with the sidebar it not only didn't render the text (as there is no way to set the stretch of a font using qss) but it adversely affected other UI elements in Qt Creator.

    So I just downloaded the source code to Qt Creator and made some changes. I was also able to reduce the width of the text editor's left margin too, since that's not possible with qss alone.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.