PDA

View Full Version : How to make application independent of resolution change?



bnav990
10th December 2017, 12:31
I am beginner in qt, i am trying to develop a application which looks as image1 as shown in 1080p, but that application is to be runned on monitor with resolution 1366x768 when that application is being run on that resolution it looks like image 2.the status bar is going down and all widget pixels are expanding.
I tried to look a solution for it and tried all possible methods such as High dpi scaling enabling and using lay outs. but in the end it did'nt solved my problem. can any one please Help me.
Image1 12718

Image 2 12719

d_stranz
11th December 2017, 17:01
Using layouts and not using fixed sizes or positions for child widgets or the top-level widget will solve these problems if you implement them correctly. Most problems of the type you are seeing is because you haven't used Qt's layout system and let it do what it is good at doing.