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. How to make size of upper parts of the Splitter minimum?

How to make size of upper parts of the Splitter minimum?

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

    Hi,
    I use Qt 5.13.2 on Win platform.

    I have splitter on the form. When I open the form it comes like below:

    c89b3071-2a52-4d70-8d06-725ac2c8b511-resim.png

    But I want see window like below when it starts.

    44a7019c-6b3f-4667-b889-5f77a68ed8ca-resim.png

    I changed the upper part vertical policy minimum but nothing changed?!... :(

    I don't understand really this? I want to make upper part of the splitter is minimum!

    Regards,
    Mucip:)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What widgets do you have in the upper part ?
      How do you build them ?
      Are you using layouts ?
      Are you setting minimum sizes ?

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

      MucipM 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        What widgets do you have in the upper part ?
        How do you build them ?
        Are you using layouts ?
        Are you setting minimum sizes ?

        MucipM Offline
        MucipM Offline
        Mucip
        wrote on last edited by
        #3

        Hi @SGaist ,
        The content is below;
        1e9c7d0f-24a7-430f-b14e-07c1111405da-resim.png

        I don't use mingw.

        Yes there are layouts.

        No, I didn't set the minimum sizes. I guess that minimum sizes may change according to differend screen rezolations?!...

        Regards,
        Mucip:)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          How many splitters do you want to use ?
          Why did you put two QFormLayouts in your secondary splitter ?

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

          MucipM 2 Replies Last reply
          0
          • SGaistS SGaist

            How many splitters do you want to use ?
            Why did you put two QFormLayouts in your secondary splitter ?

            MucipM Offline
            MucipM Offline
            Mucip
            wrote on last edited by Mucip
            #5

            Hi @SGaist ,
            I have two input area in the top and there is vertical splitter between them.
            And also I have horizontal splitter bertween up and down parts.

            I wanted to decribe below picture.
            3f8299e0-1670-483a-86fc-0af8a65d9424-resim.png

            All these are necessary for me.

            Regards,
            Mucip:)

            1 Reply Last reply
            0
            • SGaistS SGaist

              How many splitters do you want to use ?
              Why did you put two QFormLayouts in your secondary splitter ?

              MucipM Offline
              MucipM Offline
              Mucip
              wrote on last edited by
              #6

              Hi @SGaist ,
              Any advice please?...

              Regards,
              Mucip:)

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Please show some patience and allow at least 24 hours before bumping your own thread. People answering here do it on their own time and might not even live in the same time zone as you.

                As for your issue. QSplitter should contain only widgets, therefore I fail do see how you managed to put two layouts in it. It is not how it should be used.

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

                MucipM 1 Reply Last reply
                1
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by mrjj
                  #8

                  Hi
                  The designer actually allows using the splitter on floating layouts !?
                  alt text

                  That was a surprise. :)

                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Please show some patience and allow at least 24 hours before bumping your own thread. People answering here do it on their own time and might not even live in the same time zone as you.

                    As for your issue. QSplitter should contain only widgets, therefore I fail do see how you managed to put two layouts in it. It is not how it should be used.

                    MucipM Offline
                    MucipM Offline
                    Mucip
                    wrote on last edited by
                    #9

                    Hi @SGaist ,
                    Ok. Sorry for my rush please. :(

                    By the way, I don't know why but two layouts are working in on QSplitter very vell except size policiy.

                    Regards,
                    Mucip:)

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      You should anyway put these each into their own widget. Just to ensure that the splitter is used properly.

                      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
                      1

                      • Login

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