Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

App window too small and elements compressed when run



  • Hello!

    I am relatively new to coding in general and especially new to Qt. I built a little dice roll simulation program with Python and thought it would be more fun to make it into a GUI, so I started messing around with Qt Designer. I finished building it with PySide6 + Qt Designer, and it looked and worked great when run. Then I learned that PySide6 is so new that there's currently no way for me to compile the app into a single executable, so I switched to PyQt5 and changed the code accordingly. Now when I run it, the app works but the window is too small and the app elements are all compressed together (see the following image).

    Screenshot (3).png image)

    I've tried a bunch of stuff but to no effect - even changing the height/width doesn't change anything.

    Any advice would be greatly appreciated!

    It's a pretty long file, I could provide the whole thing but that seemed like it would be too much. Also I'm on Windows 10 (64 bit) if that matters.

    Cheers!


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Are you using layouts to build your UI ?


Log in to reply