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. Qt Forms Designer - Baffled
Qt 6.11 is out! See what's new in the release blog

Qt Forms Designer - Baffled

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

    I try to do something every simple:

    MainWindow
       Vertical Layout
          Horizontal Layout
             Line edit
             Button
          Text edit
    

    I am completely lost how to achieve this with designer.
    I have tried:

    • Creating Vertical layout first, Horizontal second (inside vertical layout). The layouts are how I want them, but I cannot drag the line edit and button into the horizontal layout (neither in the forms view on the left nor in the tree on the right). I tried placing them into the vertical layout first and then "select ancestor", but that does not offer me the horizontal layout
    • Creating horizontal layout with line edit and button first, then trying to put it into the vertical layout. View, tree, context menu, nothing seems to work
    1 Reply Last reply
    0
    • A Offline
      A Offline
      Asperamanca
      wrote on last edited by
      #2

      Easiest solution: Use a grid layout. Forget about nested layouts in designer.

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        This is the workaround I use:

        1. Select the layout that I want to put widgets in
        2. In the "properties" pane (bottom-right of Qt Creator), give the layout a 50-pixel margin
        3. Drag the widgets in
        4. Remove the margin added in #2

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        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