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. UI Stretch with QtCreator
QtWS25 Last Chance

UI Stretch with QtCreator

Scheduled Pinned Locked Moved Solved General and Desktop
qtdesignui designscalestretch
3 Posts 2 Posters 955 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.
  • P Offline
    P Offline
    Paullux
    wrote on last edited by
    #1

    I create an ui for my app with QtCreator but i cant make it stretch, when i reduce the window the QpushButton are hiding :

    normal
    reduce

    my main ui is like this :
    mainwindow.ui

    the tree of my ui is :
    tree

    how to make it stretch ??? i like the actual presentation but i can change it and for small screen the window is to large.

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

      Because the three layout widgets are not added to any layout. They are child widgets of centralWidget, but they are not added to its layout.
      A widget will only be resized and moved to fit the window when it is added to a layout whose parent widget is either the window or also added to an layout whose.....(repeatedly)

      P 1 Reply Last reply
      3
      • B Bonnie

        Because the three layout widgets are not added to any layout. They are child widgets of centralWidget, but they are not added to its layout.
        A widget will only be resized and moved to fit the window when it is added to a layout whose parent widget is either the window or also added to an layout whose.....(repeatedly)

        P Offline
        P Offline
        Paullux
        wrote on last edited by
        #3

        @Bonnie said in UI Stretch with QtCreator:

        Because the three layout widgets are not added to any layout. They are child widgets of centralWidget, but they are not added to its layout.
        A widget will only be resized and moved to fit the window when it is added to a layout whose parent widget is either the window or also added to an layout whose.....

        Thanks for help me, that 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