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. [Solved] I couldn't make my application maximum after I set the maximum size through Qt Designer
Forum Updated to NodeBB v4.3 + New Features

[Solved] I couldn't make my application maximum after I set the maximum size through Qt Designer

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 4.3k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    liangjingmenghua
    wrote on last edited by
    #1

    I have been learning Qt for several weeks and I just created a text editor followed by the lab exercise.
    Everything go well until I did a stupid action, that is:

    1. Double Click the mainwindow.ui and go to the Qt designer
    2. Right Click the center widget which is actually the QTextEdit, and choose the item "Size constraints",
    3. Click the Item "Set Maximum Size"
      Then the problem occurred, I couldn't make the application maximum any more.
      The icon is disabled that I couldn't click to maximize.
      And I tried to set the window flags, but it didn't work.
      Please help me to figure out why and how to fix, Thanks.
    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Any widget with a maximum size set will never get bigger than that size. I guess you set a size that is smaller than the widget would need to get when the application is maximized... so maximization is not an option anymore and the button gets disabled.

      Just reset the maximum size again and the button should get enabled again.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        liangjingmenghua
        wrote on last edited by
        #3

        Thanks ,but could you please tell me detail how to reset?
        I tried to change the maximumSize property from property window, but it still not work.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          On the right side of the property, there is a red arrow, click it to reset the property to its default value.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • L Offline
            L Offline
            liangjingmenghua
            wrote on last edited by
            #5

            Yes, I found it, and it works.
            Thank you very much!!
            I think I can have a good sleep tonight:-)

            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