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. How to change size off elements after adding to the main layout in qtdesigner?
Forum Updated to NodeBB v4.3 + New Features

How to change size off elements after adding to the main layout in qtdesigner?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 392 Views 1 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.
  • K Offline
    K Offline
    KaffeMitMilf
    wrote on last edited by
    #1

    Hey, as you see they always are in a other arrangement after I added them to the main window...
    Is there a way to resize them now and place them where I want?

    d4260e53-5de6-4705-968d-0272cd0bb516-image.png

    artwawA 1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Right click on the layouts in the tree on the top right then select layout->break layout

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1
      • K KaffeMitMilf

        Hey, as you see they always are in a other arrangement after I added them to the main window...
        Is there a way to resize them now and place them where I want?

        d4260e53-5de6-4705-968d-0272cd0bb516-image.png

        artwawA Offline
        artwawA Offline
        artwaw
        wrote on last edited by
        #3

        @KaffeMitMilf as @VRonin said - you can break to layout, adjust, reenable.
        The way to handle this in general is to roughly supply the members of the layout with minimum size, maximum size and set other related options -> and then apply the layout.
        Some of those can be altered when layout is already applied - I suggest playing with them a bit that way so you can get the feeling of how those influence the layout.

        For more information please re-read.

        Kind Regards,
        Artur

        1 Reply Last reply
        0
        • K Offline
          K Offline
          KaffeMitMilf
          wrote on last edited by KaffeMitMilf
          #4

          @VRonin
          Thanks, but as soon as im doing this they wont resize, after I resize the main window^^

          Also they always snap in a position I dont want... Is there a alternative to the layouts?
          So I can place them where I want but they still being add to MainWindow?

          1 Reply Last reply
          0
          • VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #5

            You can use spacer elements to tell the layout not to stretch widgets where you don't want them to

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            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