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. [solved]Change height of Window with tab
QtWS25 Last Chance

[solved]Change height of Window with tab

Scheduled Pinned Locked Moved General and Desktop
13 Posts 3 Posters 2.6k 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
    Ruzik
    wrote on last edited by
    #1

    Hellow, i have 2 tab, min height of first: 100, min height of second: 20, but because min height = 100, then min height of windows = 100 too, how can i set height of window 20 when second tab is active
    Advance thank for your help

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

      Can you show us an image or code of what you have already?

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Ruzik
        wrote on last edited by
        #3

        http://smotr.im/f49

        http://smotr.im/f4a

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Ruzik
          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
            • R Offline
              R Offline
              Ruzik
              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
                • R Offline
                  R Offline
                  rokemoon
                  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
                    • R Offline
                      R Offline
                      rokemoon
                      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
                        • R Offline
                          R Offline
                          rokemoon
                          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 Extensions
                            • Unsolved