Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Cannot reduce size of main window.

    General and Desktop
    design design mode designer
    2
    4
    1831
    Loading More Posts
    • 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.
    • ronyNS
      ronyNS last edited by

      Hello
      i have made a login form , everything works perfectly fine.
      I have horizontal layout on the main window.
      The problem is when i run the program , i cannot reduce the size of the window horizontaly . i can do it vertically.
      Same happens in design mode , i can move the main window vertically but not horizontally.
      When i try to change geometry , it does not change , i tried all size policies , but nothing happens.
      What is the problem, is it because of the layout? or something else.
      Please help.

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        well, did you set minimum size on something or have a QLabel with image?
        Did you call setFixedSize or something like that?

        1 Reply Last reply Reply Quote 1
        • ronyNS
          ronyNS last edited by

          Hello
          I have a QLabel with an image , does that make a difference?
          It's not there on the designer , but still my designer does not resize horizontally even when the program is not running.
          I did not call setFixedSize and i did not set minimum size.
          Thank You

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @ronyNS last edited by mrjj

            @ronyNS
            Hi yes, i have such issue with image in QLabel and layouts.
            Try to clear it and see if its it :)

            also , just to test, if u make new project, does it allow to scale mainwin in designer?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post