Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT Widget Tab Does Not Expand
QtWS25 Last Chance

QT Widget Tab Does Not Expand

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 565 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.
  • R Offline
    R Offline
    Radio1985
    wrote on last edited by Radio1985
    #1

    Hi All,
    I have desktop design which looks like below.
    07e87188-92c3-42a0-9b4f-6520c83a32f5-image.png
    The object layout is shown below.
    a1c7386a-bff8-4acc-8568-0fa47790acd5-image.png

    The issue occurs when I maximize the application. Then my widgets in the Tab does not expand. Please see the image below.

    200bfdad-4d37-4934-983d-a42ee8d4bb8a-image.png

    As you can see above, the tab did not maximize. Any idea what I am doing wrong here?

    Thanks!

    M 1 Reply Last reply
    0
    • R Radio1985

      Hi All,
      I have desktop design which looks like below.
      07e87188-92c3-42a0-9b4f-6520c83a32f5-image.png
      The object layout is shown below.
      a1c7386a-bff8-4acc-8568-0fa47790acd5-image.png

      The issue occurs when I maximize the application. Then my widgets in the Tab does not expand. Please see the image below.

      200bfdad-4d37-4934-983d-a42ee8d4bb8a-image.png

      As you can see above, the tab did not maximize. Any idea what I am doing wrong here?

      Thanks!

      M Offline
      M Offline
      mpergand
      wrote on last edited by
      #2

      @Radio1985
      I think you have to put tabWidget in a layout as well.

      R 2 Replies Last reply
      0
      • M mpergand

        @Radio1985
        I think you have to put tabWidget in a layout as well.

        R Offline
        R Offline
        Radio1985
        wrote on last edited by
        #3

        @mpergand
        Hi Thanks for the reply. Do you mean instead of "frame" vertical layout?

        SGaistS 1 Reply Last reply
        0
        • R Radio1985

          @mpergand
          Hi Thanks for the reply. Do you mean instead of "frame" vertical layout?

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

          @Radio1985 hi,

          You have two options:

          • add a layout to your "frame" and put your QTabWidget in it
          • remove "frame" altogether as it does not seem to serve a purpose beside containing your QTabWidget (unless there's an esthetic side that I missed in which case, use the option above).

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

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            @Radio1985 hi,

            You have two options:

            • add a layout to your "frame" and put your QTabWidget in it
            • remove "frame" altogether as it does not seem to serve a purpose beside containing your QTabWidget (unless there's an esthetic side that I missed in which case, use the option above).
            M Offline
            M Offline
            mpergand
            wrote on last edited by mpergand
            #5

            @Radio1985
            Despite what @SGaist said,
            your structure is wrong, the left menu should be outside the tab widget (or stack widget I think).

            SGaistS 1 Reply Last reply
            1
            • M mpergand

              @Radio1985
              Despite what @SGaist said,
              your structure is wrong, the left menu should be outside the tab widget (or stack widget I think).

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

              @mpergand you're correct, I was focused on the layout issue and missed that. Thanks !

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

              1 Reply Last reply
              0
              • M mpergand

                @Radio1985
                I think you have to put tabWidget in a layout as well.

                R Offline
                R Offline
                Radio1985
                wrote on last edited by
                #7

                @mpergand
                The issue was due to the fact that the maximum width had changed to a smaller value. As a result when I maximize the tab did not maximize to full screen.

                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