2

I want to create a UI which remains the same in all possible resolutions. I started with the Qt Designer wherein I set the geometry of my design window and when I change the resolution , the UI is not the same.

Things I tried:

1.I got the screen resolution using QT API and created a window programmatically to that resolution.But if this is the right approach,then I have to add other components programmatically. But my UI is quite big and it is time consuming creating all the UI components programmatically.

I looked at the following links:

but still I am a bit unclear of how to proceed.

Is there any way to achieve resolution independent UI using Qt Designer itself?If so, what is the approach?Else what is the work around?

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
george
  • 339
  • 3
  • 12
  • You should probably read through all of this Qt article: [High DPI Displays](https://doc.qt.io/Qt-5/highdpi.html). – ekhumoro Jul 05 '18 at 16:00

0 Answers0