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. Cannot set layout for a widget form
Forum Update on Monday, May 27th 2025

Cannot set layout for a widget form

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 186 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
    GunkutA
    wrote on last edited by
    #1

    Hello I cannot set a layout to the widget form I created. That is the related screenshot:
    Screenshot_2.png

    How can I set a layout to it?

    JonBJ 1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by Bonnie
      #2

      You must add a child widget to it first, then you can set the layout.
      You can delete the added widget after that.

      1 Reply Last reply
      4
      • G GunkutA

        Hello I cannot set a layout to the widget form I created. That is the related screenshot:
        Screenshot_2.png

        How can I set a layout to it?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @GunkutA
        Just so you know: what @Bonnie has said is correct, and it's about one of the least obvious features imaginable in Qt Creator! You are not alone, it took me ages to realize this is how it works!

        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