Could Someone Give me Advice for Creating Responsive GUIs with PySide6 or PyQt5?

Hello there, :wave:

I am fairly new to developing GUIs in Python and have been experimenting with both PySide6 and PyQt5. So far; I have managed to create some basic applications; but I am struggling to make my GUIs responsive and adaptable to different screen sizes or window resizing.

I have noticed that my layouts tend to break or elements get misaligned when the window is resized; and it is not providing the smooth experience.

How do I ensure that widgets resize proportionally without overlapping or looking awkward? I have been using these layouts; but I am unsure how to nest them properly to create more complex and flexible designs.

I understand that stretch factors and size policies play a role in widget behavior; but I have not quite grasped how to use them optimally. Could someone clarify their practical application with examples? :thinking:

Also, I have gone through this post; https://forum.pythonguis.com/t/about-pyqt6-and-pyside6-minitab which definitely helped me out a lot.

Are there any general guidelines or patterns I should follow to ensure the GUI remains user friendly on different screen sizes? :thinking:

Thanks in advance for your help and assistance. :innocent:

check out my git. I have screen shots of an app I’m writing where {in one picture (ScreenShots/Mixed Numbers Screen Shot.png) you can see how the screen adapts in size. https://github.com/flideros/Python-Sandbox1

Hi @roberrttt

I’m using PySide6 to create some GUI application.
https://github.com/emcek/dcspy
You can download executable file (from releases) and see it satisfy your user friendly idea. Then you can load ui file into QtDesigner and see details.

I’m happy answer your further question.

PS. There are many places to improve GUI code, but it is working at the end… :wink: