Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved App window too small and elements compressed when run

    Qt for Python
    2
    2
    217
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      A_Ingrassia last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        Are you using layouts to build your UI ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 1
        • First post
          Last post