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. Why the form layout messed?
Forum Updated to NodeBB v4.3 + New Features

Why the form layout messed?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 704 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.
  • G Offline
    G Offline
    Geng.Y
    wrote on last edited by
    #1

    Hi, I wanna create a dialog that allow users to type something, so I uses form layout. But it turns out to be this, what should I do next?

    Thank you for your help!
    1_1543277053511_Screen Shot 2018-11-26 at 7.01.41 PM.png 0_1543277053510_Screen Shot 2018-11-26 at 7.01.55 PM.png

    jsulmJ 1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Which platform & Qt Version. Also you don't need QFormLayout for this. You can use the VerticalLayout to arrange the UI.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      G 1 Reply Last reply
      0
      • G Geng.Y

        Hi, I wanna create a dialog that allow users to type something, so I uses form layout. But it turns out to be this, what should I do next?

        Thank you for your help!
        1_1543277053511_Screen Shot 2018-11-26 at 7.01.41 PM.png 0_1543277053510_Screen Shot 2018-11-26 at 7.01.55 PM.png

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Geng.Y Did you add a layout to the parent widget where all these widgets are located?
        Just right-click somewhere inside the parent widget, select "Lay out" and then one of the layouts (for example "Layout in a Grid").

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        G 1 Reply Last reply
        2
        • G Offline
          G Offline
          Geng.Y
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • dheerendraD dheerendra

            Which platform & Qt Version. Also you don't need QFormLayout for this. You can use the VerticalLayout to arrange the UI.

            G Offline
            G Offline
            Geng.Y
            wrote on last edited by
            #5

            @dheerendra I'm using macos mojave 10.14.10_1543327697367_Screen Shot 2018-11-27 at 9.08.04 AM.png

            I also tried vertical layout, it has the same issue, the problem lies in QLineEdit, when I replace it with other widget like label, everything went well.

            1 Reply Last reply
            0
            • jsulmJ jsulm

              @Geng.Y Did you add a layout to the parent widget where all these widgets are located?
              Just right-click somewhere inside the parent widget, select "Lay out" and then one of the layouts (for example "Layout in a Grid").

              G Offline
              G Offline
              Geng.Y
              wrote on last edited by
              #6

              @jsulm yes, the parent layout is vertival

              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