Consistent layout in different OS (macOs and RaspberryOs) with QtDesigner
-
Hi,
Hopefully, someone has faced my situation and have a better idea of how to solve it :)
I have tried to build simple apps + UI with mac QtDesigner, with a fixed layout and size...
Basically, the app uses pyQt, loads UI, and does all stuff using python.Then I run it on RasberryOs (Buster-Debian) and I get a weird or chaos looks :) The layout seems broken while the functionalities work.
Currently, I fix the layout out with QtDesigner in Raspberry which is very slow.
Is any way, workflow or how-to building a layout on mac or a faster computer then run it later on RasberryOs or slower limited devices?
Maybe a constant font and size will be difficult or need a tweak but at least the form size and widget size is constant between platform.
Any suggestion is welcome.
Createad -> qtDesigner (mac 5.9.6) Qt5, BigSure
Deployed -> Raspberry 4, Qt5, Buster (Debian).PyQt5
Version: 5.15.4thanks in advance.
-
Hi and welcome to devnet,
@sLawalata said in Consistent layout in different OS (macOs and RaspberryOs) with QtDesigner:
with a fixed layout and size...
That is already bad omen with regard to the result you want.
The idea behind layouts is that it allows you to have your controls automatically resized/placed when you resize the widget on which the layout is applied.
Therefore I would recommend to first check with a minimal project with a layout, two-three buttons and nothing fixed to see how it behaves on your target.