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. Spacer and qt designer
Qt 6.11 is out! See what's new in the release blog

Spacer and qt designer

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 2.9k 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.
  • R Offline
    R Offline
    rogerdv
    wrote on last edited by
    #1

    Im creating a widget with qt designer that includes a list to the left and other widgets to the right, organized with a grid layout. When filled, the list is too narrow and the elements are cut unless I resize the window. I tried to solve that with an spacer, but I cant see any usual widget to resize the inner space of the window. Whats the correct way to do this?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You need to set your main layout as the layout of your top-level widget (usually a QMainWindow): "link":http://qt-project.org/doc/qt-4.8/qwidget.html#setLayout. In QMainWindow you have an additional convenience function available: setCentralWidget().

      (Z(:^

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rogerdv
        wrote on last edited by
        #3

        The layout is assigned to top widget (a QWidget, in my case).

        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