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
Forum Updated to NodeBB v4.3 + New Features

UI Stretch with QtCreator

Scheduled Pinned Locked Moved Solved General and Desktop
qtdesignui designscalestretch
3 Posts 2 Posters 977 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 17 Apr 2020, 15:51 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 17 Apr 2020, 16:21 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 17 Apr 2020, 18:19
      3
      • B Bonnie
        17 Apr 2020, 16:21

        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 17 Apr 2020, 18:19 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

        2/3

        17 Apr 2020, 16:21

        • Login

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