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. Insert a group of Widgets in one QWidget?
Qt 6.11 is out! See what's new in the release blog

Insert a group of Widgets in one QWidget?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.3k 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.
  • E Offline
    E Offline
    Eduardo12l
    wrote on last edited by
    #1

    I have drawn several widgets (Buttons, Horizontal Lines, Label, etc) but i forgot to set the QWidget and i dont want to remove everything and i dont want to draw all again. How can I insert all those widget in an only one QWidget?

    jsulmJ 1 Reply Last reply
    0
    • Vinod KuntojiV Offline
      Vinod KuntojiV Offline
      Vinod Kuntoji
      wrote on last edited by
      #2

      Insert all the widgets in a layout. Then,
      use widget->setLayout(layout).

      1 Reply Last reply
      5
      • E Eduardo12l

        I have drawn several widgets (Buttons, Horizontal Lines, Label, etc) but i forgot to set the QWidget and i dont want to remove everything and i dont want to draw all again. How can I insert all those widget in an only one QWidget?

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

        @Eduardo12l Are you talking about Qt Designer? Select the widgets, cut them (Ctrl-x), insert the widget, select it and insert the cut widgets (Ctrl-v).

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

        1 Reply Last reply
        1
        • Vinod KuntojiV Offline
          Vinod KuntojiV Offline
          Vinod Kuntoji
          wrote on last edited by Vinod Kuntoji
          #4
          This post is deleted!
          jsulmJ 1 Reply Last reply
          1
          • Vinod KuntojiV Vinod Kuntoji

            This post is deleted!

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

            @Vinod-Kuntoji I actually replied to @Eduardo12l not to your answer.

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

            1 Reply Last reply
            2

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved