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. Problem on changing size of all widgets based on window size

Problem on changing size of all widgets based on window size

Scheduled Pinned Locked Moved Solved General and Desktop
resizewindow sizelayout
4 Posts 2 Posters 1.9k 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.
  • M Offline
    M Offline
    mjzarrin
    wrote on last edited by SGaist
    #1

    I design an UI with qt creator. my problem is when i change window size all of content remain as same size as before . i want these content can expand based on window size.
    bellow i prepare 2 image from my app.
    default window size
    link text
    i'll be appreciated if somebody help me.
    thank u all.

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

      Hi,

      Did you put your widgets inside layouts ? If not then that's what is missing to your UI

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

      M 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Did you put your widgets inside layouts ? If not then that's what is missing to your UI

        M Offline
        M Offline
        mjzarrin
        wrote on last edited by
        #3

        @SGaist
        thank u very much.
        I selected all items in each QStacks pages and then choose layout vertically by Ctrl+L and it works.
        thank you again.

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

          You're welcome !

          By the way, you don't need to change the title of the thread anymore, just use the "Topic Tool" button to mark the thread as solved.

          Also, while browsing the forum, consider up-voting the answers that helped you, that will make them easier to find for other forum users :)

          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