I
I
Ilia Zhitenev2019-04-29 09:33:01
Qt
Ilia Zhitenev, 2019-04-29 09:33:01

How to disable system scaling in a Qt application?

Hello! In the Qt designer I draw a form, I work on two PCs. On one, the usual system scale, and on the laptop, in view of the small screen, the system scale is set to 150% of which the form looks different and moves apart. Tell me how you can control this scale and turn it off for an element or the entire application?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ighor July, 2019-04-29
@IGHOR

QApplication::setAttribute(Qt::AA_Use96Dpi);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question