Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved]Change height of Window with tab
Qt 6.12 LTS is out! See what's new in the release blog

[solved]Change height of Window with tab

Scheduled Pinned Locked Moved General and Desktop
13 Posts 3 Posters 3.9k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #3

    http://smotr.im/f49

    http://smotr.im/f4a

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #4

      This do Safari in it's settings

      1 Reply Last reply
      0
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #5

        I tried it out with :
        @connect(ui->tabWidget, SIGNAL(currentChanged(int)), this, SLOT(Min()));@

        and in the slot Min() i used
        @layout()->setSizeConstraint(QLayout::SetFixedSize);@

        but in that case the dialog minimizes it's size to the tabwidget with the largest sizehint. So that's not the solution.

        I guess you will have to do it yourself using a dynamic dialog using 2 buttons on top and adding/removing layouts like in the "Shape-Changing Dialogs" chapter from "the official -QT- Qt book.":http://www.qtrac.eu/C++-GUI-Programming-with-Qt-4-1st-ed.zip

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #6

          Thank you for your help

          1 Reply Last reply
          0
          • EddyE Offline
            EddyE Offline
            Eddy
            wrote on last edited by
            #7

            You're welcome!
            when you have finished it, could you change the title and add [Solved] please?

            Qt Certified Specialist
            www.edalsolutions.be

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #8

              [quote author="Eddy" date="1313047146"]
              "the official -QT- Qt book.":http://www.qtrac.eu/C++-GUI-Programming-with-Qt-4-1st-ed.zip[/quote]
              Eddy you did this -QT- Qt:-D

              1 Reply Last reply
              0
              • EddyE Offline
                EddyE Offline
                Eddy
                wrote on last edited by
                #9

                I should be punished severely for this!!! ;)

                I altered your post too because we really cannot have this ;-P

                Qt Certified Specialist
                www.edalsolutions.be

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #10

                  You are right we really cannot have this :-D
                  Congrats you with Mad Scientist :-)

                  1 Reply Last reply
                  0
                  • EddyE Offline
                    EddyE Offline
                    Eddy
                    wrote on last edited by
                    #11

                    Thanks Rokemoon,

                    It's not the best way of passing the line to the highest level on devnet with a Qt spell blunder.

                    Qt Certified Specialist
                    www.edalsolutions.be

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #12

                      You have helped so many people that it's excusable :-)

                      1 Reply Last reply
                      0
                      • EddyE Offline
                        EddyE Offline
                        Eddy
                        wrote on last edited by
                        #13

                        Thanks for your forgiveness and for the many solutions you donated. You've been quiet busy lately!

                        Qt Certified Specialist
                        www.edalsolutions.be

                        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
                        • Unsolved