Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Design Tooling
  3. Qt Design Studio
  4. How to widgets to fit all screens?
Forum Update on Monday, May 27th 2025

How to widgets to fit all screens?

Scheduled Pinned Locked Moved Unsolved Qt Design Studio
12 Posts 4 Posters 1.4k 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.
  • L Offline
    L Offline
    LT-K101
    wrote on last edited by
    #1

    After previewing a form on an 15inches laptop screen the widgets seem to be stacked together as shown in the image below. But when I preview the same form on 29inches monitor connected via HDMI its look fine. I used layouts. Do I have to adjust the dimensions of the labels and lineEdits to get a better view? I don't know what I'm doing wrong.

    Screenshot (1).png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Sorry, I am failing to see the issue with image you are showing.

      What exactly is the problem ?
      How should it look ideally ?

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

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Sorry, I am failing to see the issue with image you are showing.

        What exactly is the problem ?
        How should it look ideally ?

        D Offline
        D Offline
        DerReisende
        wrote on last edited by
        #3

        @SGaist I think he refers to the cut off labels for the emergency contact data.
        I think the use of layout is wrong but this guessing without code.

        SGaistS 1 Reply Last reply
        0
        • D DerReisende

          @SGaist I think he refers to the cut off labels for the emergency contact data.
          I think the use of layout is wrong but this guessing without code.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @DerReisende good catch ! I hadn't zoomed enough.

          @LT-K101 Which layout are you using ?

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

          L 1 Reply Last reply
          0
          • SGaistS SGaist

            @DerReisende good catch ! I hadn't zoomed enough.

            @LT-K101 Which layout are you using ?

            L Offline
            L Offline
            LT-K101
            wrote on last edited by
            #5

            @SGaist I first used a vertical layout for the centralwidget and within it I used grid layout for the form.

            jsulmJ 1 Reply Last reply
            0
            • L LT-K101

              @SGaist I first used a vertical layout for the centralwidget and within it I used grid layout for the form.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @LT-K101 Did you really put all widgets into layouts?
              Did you change anything else (like size policy)?
              You can also show how your widget look in design mode, so we can see whether there is something wrong with layouts.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              L 2 Replies Last reply
              0
              • jsulmJ jsulm

                @LT-K101 Did you really put all widgets into layouts?
                Did you change anything else (like size policy)?
                You can also show how your widget look in design mode, so we can see whether there is something wrong with layouts.

                L Offline
                L Offline
                LT-K101
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @LT-K101 Did you really put all widgets into layouts?
                  Did you change anything else (like size policy)?
                  You can also show how your widget look in design mode, so we can see whether there is something wrong with layouts.

                  L Offline
                  L Offline
                  LT-K101
                  wrote on last edited by
                  #8

                  @jsulm Below is the design mode image.

                  Screenshot (2).png

                  jsulmJ 1 Reply Last reply
                  0
                  • L LT-K101

                    @jsulm Below is the design mode image.

                    Screenshot (2).png

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @LT-K101 To me it looks like your top (parent) widget has no layout

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    L 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @LT-K101 To me it looks like your top (parent) widget has no layout

                      L Offline
                      L Offline
                      LT-K101
                      wrote on last edited by
                      #10

                      @jsulm You mean the employment history part?

                      jsulmJ 1 Reply Last reply
                      0
                      • L LT-K101

                        @jsulm You mean the employment history part?

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @LT-K101 I mean the widget where you put all these widgets and layouts, whatever you call it.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        L 1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @LT-K101 I mean the widget where you put all these widgets and layouts, whatever you call it.

                          L Offline
                          L Offline
                          LT-K101
                          wrote on last edited by
                          #12

                          @jsulm I used grid layout for that widget.

                          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