Barely readable fonts QTCreator (and others)
-
If I'm reading your font definition correctly, you're specifying a 10 point font -- sounds pretty small for a 4K screen. Purely as an experiment, try changing the 10 to, say, 48.
This may fix your issue, but I don't know that it's the best way to address this.
-
@mzimmers It is Qt Creator 9.0.1, based on Qt 6.4.1.
The About pop-up saysQt Creator 9.0.1 Based on Qt 6.4.1 (GCC 12.2.1 20221020 [revision 0aaef83351473e8f4eb774f8f999bbe87a4866d7], x86_64) Copyright 2008-2022 The Qt Company Ltd. All rights reserved. The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The Qt logo as well as Qt®, Qt Quick®, Built with Qt®, Boot to Qt®, Qt Quick Compiler®, Qt Enterprise®, Qt Mobile® and Qt Embedded® are registered trademarks of The Qt Company Ltd.code_text
-
@mzimmers It is Qt Creator 9.0.1, based on Qt 6.4.1.
The About pop-up saysQt Creator 9.0.1 Based on Qt 6.4.1 (GCC 12.2.1 20221020 [revision 0aaef83351473e8f4eb774f8f999bbe87a4866d7], x86_64) Copyright 2008-2022 The Qt Company Ltd. All rights reserved. The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The Qt logo as well as Qt®, Qt Quick®, Built with Qt®, Boot to Qt®, Qt Quick Compiler®, Qt Enterprise®, Qt Mobile® and Qt Embedded® are registered trademarks of The Qt Company Ltd.code_text
@Jogchum I'm sorry, I don't have an answer for you. Qtconfig is a relic from the Qt4 days, so that won't help you here.
You can change the appearance of the editor contents using preferences, but that's a very incomplete answer. I sort of remember going around this tree myself a few years back. Hopefully someone more knowledgable than I can chime in here.
-
@mzimmers It is Qt Creator 9.0.1, based on Qt 6.4.1.
The About pop-up saysQt Creator 9.0.1 Based on Qt 6.4.1 (GCC 12.2.1 20221020 [revision 0aaef83351473e8f4eb774f8f999bbe87a4866d7], x86_64) Copyright 2008-2022 The Qt Company Ltd. All rights reserved. The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The Qt logo as well as Qt®, Qt Quick®, Built with Qt®, Boot to Qt®, Qt Quick Compiler®, Qt Enterprise®, Qt Mobile® and Qt Embedded® are registered trademarks of The Qt Company Ltd.code_text
-
@Jogchum I'm sorry, I don't have an answer for you. Qtconfig is a relic from the Qt4 days, so that won't help you here.
You can change the appearance of the editor contents using preferences, but that's a very incomplete answer. I sort of remember going around this tree myself a few years back. Hopefully someone more knowledgable than I can chime in here.
-
@JoeCFD Thanks for the hint. The workaround offered there is: give
--platform windows:dpiawareness=1
as an argument to invoking qtcreator)
That is meant for the Windows platform.
Available platforms in my environment that are presented in my case:Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb, wayland-egl, wayland.
I tried to pass the various platforms, some of which don't activate qtcreator at all, with various eroor messages, some make it crash immediately, some let qtcreator start, but without changing the font size.
I understand, from the discussion there, that the problem is long standing....
-
@JoeCFD Thanks for the hint. The workaround offered there is: give
--platform windows:dpiawareness=1
as an argument to invoking qtcreator)
That is meant for the Windows platform.
Available platforms in my environment that are presented in my case:Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb, wayland-egl, wayland.
I tried to pass the various platforms, some of which don't activate qtcreator at all, with various eroor messages, some make it crash immediately, some let qtcreator start, but without changing the font size.
I understand, from the discussion there, that the problem is long standing....
-
@Jogchum
--platform windows:dpiawareness=1 is documented here.
https://doc.qt.io/qt-5/highdpi.html
I did not see any doc about Linux. But check out if QT_ENABLE_HIGHDPI_SCALING or QT_AUTO_SCREEN_SCALE_FACTOR helps.@JoeCFD Hi Joe,
I did read that already, but concluded that is was for applications built with QT, not for the qt tols themselves.
On your suggestion, I gave it a try in the Unix-style, issuingexport QT_SCALE_FACTOR=2
on the terminal, before launching qtcreator.
This works! Thanks a lot, and my apologies that I did not try this myself in the first place! -
@JoeCFD Hi Joe,
I did read that already, but concluded that is was for applications built with QT, not for the qt tols themselves.
On your suggestion, I gave it a try in the Unix-style, issuingexport QT_SCALE_FACTOR=2
on the terminal, before launching qtcreator.
This works! Thanks a lot, and my apologies that I did not try this myself in the first place!@Jogchum said in Barely readable fonts QTCreator (and others):
not for the qt tols themselves
QtCreator is written using Qt.