Feb-15-2019, 03:52 AM
(This post was last modified: Feb-15-2019, 03:53 AM by FesterJester.)
I am in the process of writing a Python 3 QT5 app.
I have about 80% of the layout created.
Originally, I planned to design and use it on a 3.5 inch touch screen with 320x240 resolution, but decided part way through to try hard to make it work at almost any screen resolution.
So, I started playing with style sheets, but I don't think this is going to get me the whole way there.
I have come to find out that some widgets resize automatically (I.E. QLCDNumber, QPushButton horizontally) and some do not (I.E. QLabel, QSpinBox).
With help from Alfalfa, I figured out how to resize QPushButton both horizontally and vertically using QSizePolicy.
I am, however, still struggling with almost everything else resizing.
I am looking to maintain aspect ratio, not have more things show up the bigger the window gets.
What should I be looking into and/or where should I be looking?
Thanks,
FJ
I have about 80% of the layout created.
Originally, I planned to design and use it on a 3.5 inch touch screen with 320x240 resolution, but decided part way through to try hard to make it work at almost any screen resolution.
So, I started playing with style sheets, but I don't think this is going to get me the whole way there.
I have come to find out that some widgets resize automatically (I.E. QLCDNumber, QPushButton horizontally) and some do not (I.E. QLabel, QSpinBox).
With help from Alfalfa, I figured out how to resize QPushButton both horizontally and vertically using QSizePolicy.
I am, however, still struggling with almost everything else resizing.
I am looking to maintain aspect ratio, not have more things show up the bigger the window gets.
What should I be looking into and/or where should I be looking?
Thanks,
FJ