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. Cannot reduce size of main window.

Cannot reduce size of main window.

Scheduled Pinned Locked Moved Unsolved General and Desktop
designdesign modedesigner
4 Posts 2 Posters 2.6k 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.
  • ronyNSR Offline
    ronyNSR Offline
    ronyNS
    wrote on last edited by
    #1

    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
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      1
      • ronyNSR Offline
        ronyNSR Offline
        ronyNS
        wrote on last edited by
        #3

        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

        mrjjM 1 Reply Last reply
        0
        • ronyNSR ronyNS

          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

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          @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
          0

          • Login

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