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. All objects are getting resized depends on screen resolution

All objects are getting resized depends on screen resolution

Scheduled Pinned Locked Moved Unsolved Qt for Python
6 Posts 2 Posters 823 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.
  • G Offline
    G Offline
    georgehanna1993
    wrote on last edited by
    #1

    Hey guys, I plugged my Laptop to a monitor as a second screen.
    Whenever I move the Running App window (which was made with python), some objects get smaller, fonts getting smaller, and many objects move left or right (won't be aligned anymore)

    Is there any way I can "Lock" all the objects properties, so that they don't change?

    JonBJ 1 Reply Last reply
    0
    • G georgehanna1993

      Hey guys, I plugged my Laptop to a monitor as a second screen.
      Whenever I move the Running App window (which was made with python), some objects get smaller, fonts getting smaller, and many objects move left or right (won't be aligned anymore)

      Is there any way I can "Lock" all the objects properties, so that they don't change?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @georgehanna1993 said in All objects are getting resized depends on screen resolution:

      and many objects move left or right

      For this part, are you using Qt layouts in your UI?

      Is there any way I can "Lock" all the objects properties, so that they don't change?

      Do you truly mean this? So if the screen resolution changes to, say, more pixels, you want your application to only fill the top-left of the new resolution screen?

      G 1 Reply Last reply
      0
      • G Offline
        G Offline
        georgehanna1993
        wrote on last edited by
        #3

        let me show you an example:
        First screen:
        Inked1_LI.jpg image url)

        Second Screen:Inked2_LI.jpg

        Just look at the marked line there...something is moving.

        G 1 Reply Last reply
        0
        • G georgehanna1993

          let me show you an example:
          First screen:
          Inked1_LI.jpg image url)

          Second Screen:Inked2_LI.jpg

          Just look at the marked line there...something is moving.

          G Offline
          G Offline
          georgehanna1993
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • JonBJ JonB

            @georgehanna1993 said in All objects are getting resized depends on screen resolution:

            and many objects move left or right

            For this part, are you using Qt layouts in your UI?

            Is there any way I can "Lock" all the objects properties, so that they don't change?

            Do you truly mean this? So if the screen resolution changes to, say, more pixels, you want your application to only fill the top-left of the new resolution screen?

            G Offline
            G Offline
            georgehanna1993
            wrote on last edited by
            #5

            @JonB I just checked, even with layout, When I preview the page in QT designer, and move the window from one screen to another, It changes.
            Even the QWidgetTable, also changes size and hide some elements in it.

            is there any solution for that?

            JonBJ 1 Reply Last reply
            0
            • G georgehanna1993

              @JonB I just checked, even with layout, When I preview the page in QT designer, and move the window from one screen to another, It changes.
              Even the QWidgetTable, also changes size and hide some elements in it.

              is there any solution for that?

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @georgehanna1993
              I will keep this brief, as I am not the person to answer (I don't use varying screens, or if I do I'm happy with however it comes out).

              I imagine in your shots, for example, that there are differences between the label sizes/positions versus the text edit/font as the resolution changes. Part of the point of layouts is to allow these all to be resized in a suitable fashion, bot to keep things in exactly the same place/size.

              In the case you show, If I wanted/expected the right-hand sides of the labels and the text edit to line up, I would expect to use some kind of layouts (might even be a grid one, or tables [but not for the situation you show]) where I specified my desired alignments.

              That's all I know, maybe someone else has better advice.

              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