Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. App window too small and elements compressed when run

App window too small and elements compressed when run

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 541 Views
  • 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 Offline
    A Offline
    A_Ingrassia
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved