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. Fix scaling problems from Qt Designer to Python
Forum Updated to NodeBB v4.3 + New Features

Fix scaling problems from Qt Designer to Python

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 2 Posters 458 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.
  • E Offline
    E Offline
    Ethan Chan
    wrote on last edited by
    #1

    For the past few days I've been making a Qt app on Qt Designer. But once I unplugged my laptop from my monitors, the scaling shrunk and turned out really bad. On the Designer it looks fine, but when I compile it into Python code using loadUi it now looks horrible. On the Designer everything just grew a lot bigger. I've restarted the app and the problem still persists.

    4611d1c9-9ee6-48c3-8790-1e86295f0930-image.png

    It used to look like this:

    0a995f8d-330f-40f6-9600-50890a331a5b-image.png

    You can see the difference. It's way smaller and the font size is the same. Yet, all the graphic elements have considerably shrunk.

    PC Information

    Windows 11, Python 3.11, Intel (R) Iris (R) Plus Graphics.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      friedemannkleint
      wrote on last edited by
      #2

      Did you set any maximum size constraints in the form?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Ethan Chan
        wrote on last edited by
        #3

        I did not. The maximumSize for all widgets are 16777215 by 16777215 and the minimum size is 0. The size policy is [Expanding, expanding, 0, 0]

        1 Reply Last reply
        0

        • Login

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