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 Updated to NodeBB v4.3 + New Features

How to widgets to fit all screens?

Scheduled Pinned Locked Moved Unsolved Qt Design Studio
12 Posts 4 Posters 1.5k Views 1 Watching
  • 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 16 May 2022, 16:22 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 May 2022, 17:52 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 16 May 2022, 17:56
      0
      • S SGaist
        16 May 2022, 17:52

        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 16 May 2022, 17:56 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.

        S 1 Reply Last reply 16 May 2022, 18:01
        0
        • D DerReisende
          16 May 2022, 17:56

          @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.

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 16 May 2022, 18:01 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 16 May 2022, 21:07
          0
          • S SGaist
            16 May 2022, 18:01

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

            @LT-K101 Which layout are you using ?

            L Offline
            L Offline
            LT-K101
            wrote on 16 May 2022, 21:07 last edited by
            #5

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

            J 1 Reply Last reply 17 May 2022, 05:27
            0
            • L LT-K101
              16 May 2022, 21:07

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

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 17 May 2022, 05:27 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 17 May 2022, 08:11
              0
              • J jsulm
                17 May 2022, 05:27

                @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 17 May 2022, 08:11 last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • J jsulm
                  17 May 2022, 05:27

                  @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 17 May 2022, 08:24 last edited by
                  #8

                  @jsulm Below is the design mode image.

                  Screenshot (2).png

                  J 1 Reply Last reply 17 May 2022, 08:27
                  0
                  • L LT-K101
                    17 May 2022, 08:24

                    @jsulm Below is the design mode image.

                    Screenshot (2).png

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 17 May 2022, 08:27 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 17 May 2022, 09:24
                    0
                    • J jsulm
                      17 May 2022, 08:27

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

                      L Offline
                      L Offline
                      LT-K101
                      wrote on 17 May 2022, 09:24 last edited by
                      #10

                      @jsulm You mean the employment history part?

                      J 1 Reply Last reply 17 May 2022, 09:26
                      0
                      • L LT-K101
                        17 May 2022, 09:24

                        @jsulm You mean the employment history part?

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 17 May 2022, 09:26 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 17 May 2022, 09:34
                        0
                        • J jsulm
                          17 May 2022, 09:26

                          @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 17 May 2022, 09:34 last edited by
                          #12

                          @jsulm I used grid layout for that widget.

                          1 Reply Last reply
                          0

                          6/12

                          17 May 2022, 05:27

                          • Login

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