Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Widgets: How to create dynamic dialog layout?
Forum Updated to NodeBB v4.3 + New Features

Widgets: How to create dynamic dialog layout?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 3 Posters 872 Views 3 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.
  • D Offline
    D Offline
    davecotter
    wrote on last edited by
    #1

    see this video explainer:
    https://karaoke.kjams.com/screenshots/Qt/dialog_help.mp4

    Any hints how to build this using a Qt Designer form?
    Do i use nested "Layouts"? how do i set them up?

    Thanks!

    kshegunovK 1 Reply Last reply
    0
    • D Offline
      D Offline
      davecotter
      wrote on last edited by
      #6

      thanks! that really helps!

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

        hi
        good with video.
        One way is to use the layout stretch factor to allocate more space to the one in the middle
        alt text

        And yes, you can use the red layouts to insert into other layout and sub divide a layout into areas
        I just used widgets here but red layout also works.

        1 Reply Last reply
        3
        • D davecotter

          see this video explainer:
          https://karaoke.kjams.com/screenshots/Qt/dialog_help.mp4

          Any hints how to build this using a Qt Designer form?
          Do i use nested "Layouts"? how do i set them up?

          Thanks!

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by kshegunov
          #3

          @mrjj is correct, it's a play between the different layouts and stretch factors (and maybe spacer items). Here's my suggestion on how you can do it:

          0_1551045080506_drawing.png

          Dashed lines are cell demarcations for the different layouts. I used colors intentionally to (hopefully) make it clear what goes into what and what exactly each object is; but please don't mock my artistic skills, or rather the lack thereof ... ;)

          Read and abide by the Qt Code of Conduct

          mrjjM 1 Reply Last reply
          3
          • kshegunovK kshegunov

            @mrjj is correct, it's a play between the different layouts and stretch factors (and maybe spacer items). Here's my suggestion on how you can do it:

            0_1551045080506_drawing.png

            Dashed lines are cell demarcations for the different layouts. I used colors intentionally to (hopefully) make it clear what goes into what and what exactly each object is; but please don't mock my artistic skills, or rather the lack thereof ... ;)

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @kshegunov
            Its beautiful. Very creative and in color :)

            kshegunovK 1 Reply Last reply
            0
            • mrjjM mrjj

              @kshegunov
              Its beautiful. Very creative and in color :)

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by kshegunov
              #5

              @mrjj said in Widgets: How to create dynamic dialog layout?:

              Its beautiful. Very creative and in color :)

              You're too nice ;)
              Long live inkscape. If I knew how to capture my screen I'd've just recorded it directly from QtCreator as it's less work and you know I'm a lazy bastard ... :D

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              1
              • D Offline
                D Offline
                davecotter
                wrote on last edited by
                #6

                thanks! that really helps!

                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