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

understanding the layouts

Scheduled Pinned Locked Moved General and Desktop
qt designer
4 Posts 2 Posters 1.4k 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
    amigo421
    wrote on last edited by
    #1

    Hi

    trying to design UI in Qt designer,
    it doesn't look similar to previous skills in C# with simplest anchor property.
    I see that I can to use various layout objects and they do what I need,
    expecting the only thing,
    I can't find the setting to anchor the controls to various sides.
    looks like layouts do not resize together with form resizing by user

    how can I fix this?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you already read the Using layouts in Designer documentation ? That should you get started

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        amigo421
        wrote on last edited by amigo421
        #3

        I've read this but you are right - I forgot to apply top level layout
        now it works
        thank you

        however still have a question , I could not find the answer for this

        when I have two items with horizontal layout
        (left side is a text box, right side is a grouped vertical layout of various buttons)
        when I'm resizing the form I 'd like to resize left item (editbox) only and keep right item(group of the buttons) with constant width.
        currently both groups are resized

        coiuld you assist please?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You can put your buttons in a QWidget and then use setFixedSize

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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