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. Adjustment of all widgets according to change in Size of UI Window Screen.
Qt 6.11 is out! See what's new in the release blog

Adjustment of all widgets according to change in Size of UI Window Screen.

Scheduled Pinned Locked Moved Solved Qt for Python
15 Posts 4 Posters 3.6k 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.
  • jsulmJ jsulm

    @VIDYUL-SHAH So, use layouts like @Axel-Spoerl suggested...

    V Offline
    V Offline
    VIDYUL SHAH
    wrote on last edited by
    #6

    @jsulm UI Sample.png
    Any setting I need to change here. Or in the code where I will load this ui?

    JonBJ 1 Reply Last reply
    0
    • V VIDYUL SHAH

      @jsulm UI Sample.png
      Any setting I need to change here. Or in the code where I will load this ui?

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

      @VIDYUL-SHAH
      In Object Explorer your centralWidget has a "red no entry" sign, indicating it does have a layout on it. You never want that to be the case. Right click on it and set a layout.

      V 1 Reply Last reply
      1
      • JonBJ JonB

        @VIDYUL-SHAH
        In Object Explorer your centralWidget has a "red no entry" sign, indicating it does have a layout on it. You never want that to be the case. Right click on it and set a layout.

        V Offline
        V Offline
        VIDYUL SHAH
        wrote on last edited by VIDYUL SHAH
        #8

        @JonB It give me only ten options which doesn't include Layout Option. Neither I am able to select it with other widgets to combine and do a layout setting.
        widget.jpeg

        jsulmJ 1 Reply Last reply
        0
        • V VIDYUL SHAH

          @JonB It give me only ten options which doesn't include Layout Option. Neither I am able to select it with other widgets to combine and do a layout setting.
          widget.jpeg

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

          @VIDYUL-SHAH You need to click on the widget itself...

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

          JonBJ V 2 Replies Last reply
          0
          • jsulmJ jsulm

            @VIDYUL-SHAH You need to click on the widget itself...

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

            @jsulm
            I think he has done that.

            @VIDYUL-SHAH
            Don't ask me why or why it's so complicated in Designer. Just for now delete everything you have on the central layout. Then add some widget to it, doesn't matter what. Then you should be able to right click and select Set layout > at the bottom of the context menu. Or maybe you have to do on the widget in the actual viewing pane. Fiddle till you get it right, because you're going to need to do this for future widgets where you want a layout. It doesn't let you set a layout on a widget till it has a child widget, even though you could delete the child widget afterwards. To me it all makes no sense, but I didn't design it....

            V 1 Reply Last reply
            0
            • jsulmJ jsulm

              @VIDYUL-SHAH You need to click on the widget itself...

              V Offline
              V Offline
              VIDYUL SHAH
              wrote on last edited by
              #11
              This post is deleted!
              1 Reply Last reply
              0
              • JonBJ JonB

                @jsulm
                I think he has done that.

                @VIDYUL-SHAH
                Don't ask me why or why it's so complicated in Designer. Just for now delete everything you have on the central layout. Then add some widget to it, doesn't matter what. Then you should be able to right click and select Set layout > at the bottom of the context menu. Or maybe you have to do on the widget in the actual viewing pane. Fiddle till you get it right, because you're going to need to do this for future widgets where you want a layout. It doesn't let you set a layout on a widget till it has a child widget, even though you could delete the child widget afterwards. To me it all makes no sense, but I didn't design it....

                V Offline
                V Offline
                VIDYUL SHAH
                wrote on last edited by VIDYUL SHAH
                #12

                @JonB @jsulm After reading your replies, I created a new main window and removed status and tool bar. Then I have added two new widgets and 1 label. Still it doesn't give me any options neither, it enables layout options below the tool bar in qt designer. Is there a possibility that I might have not downloaded a full version of the software? Or I am doing a silly mistake.

                jsulmJ 1 Reply Last reply
                0
                • V VIDYUL SHAH

                  @JonB @jsulm After reading your replies, I created a new main window and removed status and tool bar. Then I have added two new widgets and 1 label. Still it doesn't give me any options neither, it enables layout options below the tool bar in qt designer. Is there a possibility that I might have not downloaded a full version of the software? Or I am doing a silly mistake.

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

                  @VIDYUL-SHAH said in Adjustment of all widgets according to change in Size of UI Window Screen.:

                  it enables layout options below the tool bar in qt designer

                  This should be exactly what you need. You really just have to right click on your main window (in an empty place) in designer.

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

                  V 2 Replies Last reply
                  0
                  • jsulmJ jsulm

                    @VIDYUL-SHAH said in Adjustment of all widgets according to change in Size of UI Window Screen.:

                    it enables layout options below the tool bar in qt designer

                    This should be exactly what you need. You really just have to right click on your main window (in an empty place) in designer.

                    V Offline
                    V Offline
                    VIDYUL SHAH
                    wrote on last edited by
                    #14

                    @jsulm Oh I was trying to right click on the central widget instead of the Main Window. I will update here if done or faced any issues thank you.

                    1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @VIDYUL-SHAH said in Adjustment of all widgets according to change in Size of UI Window Screen.:

                      it enables layout options below the tool bar in qt designer

                      This should be exactly what you need. You really just have to right click on your main window (in an empty place) in designer.

                      V Offline
                      V Offline
                      VIDYUL SHAH
                      wrote on last edited by
                      #15

                      @jsulm Thank you for all the suggestions and guidance. I have implemented it successfully.

                      1 Reply Last reply
                      0
                      • V VIDYUL SHAH has marked this topic as solved on
                      • V VIDYUL SHAH referenced this topic on

                      • Login

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