Frank Escobar
Frank Escobar

Reputation: 376

Get User Interface on Qt rescaled: how?

I've made an app that work ok for everyone except a fixed user, he has a 2560 x 1440 screen (but we already tried on other screen with the same resolution).

The issue is that everything is so much bigger than expected including widgets thare are set to work on a fixed size given in pixels.

I know that I've provided really few info but to be honest I cannot imagine any other relevant information since this is everything I know.

Any tip is welcome. Regards!

PS. this scale is afecting everything including fonts, images etc.

Upvotes: 0

Views: 72

Answers (2)

Alexander V
Alexander V

Reputation: 8698

All from the below answer of mine is applicable here: Qt5.6: high DPI support and OpenGL (OpenSceneGraph)

P.S. I am not to argue with Kuba Ober's answer, the problem is very familiar to me and in addition to all the proper layouts etc. something needs to be done, specifically: activating DPI Awareness which is a bit 'undiscovered' topic for Qt on Windows. There are great improvements starting Qt 5.6 and that requires introducing the proper manifest to executable etc. I for now use a shortcut with Qt 5.5 as described in my previous answer.

Upvotes: 2

It's a Windows feature - the screen DPI has been changed to make the UI more readable. Your application must cope with it, that's what layouts are for. Had you used layouts, or even a custom layout manager, it'd have worked. Your design is fundamentally deficient and it has to be addressed.

Fixed position layouts are bad not only because modifying them is labor intensive, but also because they never work when common accessibility and translations are enabled.

Upvotes: 4

Related Questions