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 Designer - How to create a layout

QT Designer - How to create a layout

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

    I'm new to QT, especially QT Designer and I found it to be quite unintuitive.

    I have the following layout which I'm trying to achieve in Qt Designer.

    enter image description here

    Explication:

    • YELLOW -> the application window
    • BLUE -> 2 side buttons with the heigh of red heigh and white heigh
    • RED -> should be around of 2/3 of the blue heigh
    • WHITE -> should also be around 1/3 of blue heigh

    Layouts:

    • REDs -> Lay Out Horizontally
    • WHITEs -> Lay Out Horizontally
    • REDs + WHITEs -> Lay Out Vertically
    • BLUE + (REDs + WHITEs) -> Lay Out Horizontally
    • (BLUE + (REDs + WHITEs)) + SPACER -> Lay Out Vertically (because it's needs to be some space between the buttons and the top of application)

    BUT if I will apply of those which I said above, I'm going to get something like this:

    enter image description here

    So far as I've search I can use the Lay Out Horizontally in Splitter and Lay Out Horizontally Vertically in Splitter to keep the aspect ratio that I want, but then I can split the app and I don't want that.
    Can anyone help me to understand how can I do this? Or the only way of doing this would be from C++?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • V Vildnex

      I'm new to QT, especially QT Designer and I found it to be quite unintuitive.

      I have the following layout which I'm trying to achieve in Qt Designer.

      enter image description here

      Explication:

      • YELLOW -> the application window
      • BLUE -> 2 side buttons with the heigh of red heigh and white heigh
      • RED -> should be around of 2/3 of the blue heigh
      • WHITE -> should also be around 1/3 of blue heigh

      Layouts:

      • REDs -> Lay Out Horizontally
      • WHITEs -> Lay Out Horizontally
      • REDs + WHITEs -> Lay Out Vertically
      • BLUE + (REDs + WHITEs) -> Lay Out Horizontally
      • (BLUE + (REDs + WHITEs)) + SPACER -> Lay Out Vertically (because it's needs to be some space between the buttons and the top of application)

      BUT if I will apply of those which I said above, I'm going to get something like this:

      enter image description here

      So far as I've search I can use the Lay Out Horizontally in Splitter and Lay Out Horizontally Vertically in Splitter to keep the aspect ratio that I want, but then I can split the app and I don't want that.
      Can anyone help me to understand how can I do this? Or the only way of doing this would be from C++?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @Vildnex said in QT Designer - How to create a layout:

      I'm new to QT, especially QT Designer

      Have you already checked the documentation?
      You'll also find more about layout management.

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      V 1 Reply Last reply
      0
      • Pablo J. RoginaP Pablo J. Rogina

        @Vildnex said in QT Designer - How to create a layout:

        I'm new to QT, especially QT Designer

        Have you already checked the documentation?
        You'll also find more about layout management.

        V Offline
        V Offline
        Vildnex
        wrote on last edited by
        #3

        @Pablo-J-Rogina In the documentation doesn't sais anything regarding my needs, just some basic layout options which I know it already, and on the layout manager, it's all about C++. So if you are telling me about this layout managemt link that means there is no way of doing this just by using QT Designer?

        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