Erwan SZYMANSKIBest answer
ST Technical Moderator
February 15, 2022
Hello @zqizh.1
Finally, your problem comes from a configuration of QtCreator itself. You need to configure the resolution of the target of the Designer tool.
How to do that ?
In QtCreator, go to Tools -> Options -> Designer -> Embedded Design.
Here you will create a new Device profile that will deals with your real target resolution. In the case of the native screen of the STM32MP15, we have something like 234 x 236 dpi.
Then you will restart QtCreator (it seems that it needs it to reconfigure the preview). And now the preview is in phase with what you can observe on your target:
Now you can adjust the font size of the QButton and the QLabel properly depending of what you want.
Hope it will help you.
Regards.
Erwan.
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
