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. Maximize window
Qt 6.11 is out! See what's new in the release blog

Maximize window

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 3 Posters 4.4k Views 2 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.
  • JulianJ Offline
    JulianJ Offline
    Julian
    wrote on last edited by
    #1

    I do not know what I thouched but a mainwindow do not acept a maximize. Where is the option in Qt creator to disable this?

    regards.

    jsulmJ 1 Reply Last reply
    0
    • JulianJ Julian

      I do not know what I thouched but a mainwindow do not acept a maximize. Where is the option in Qt creator to disable this?

      regards.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Julian Do you mean MainWindow in your app or QtCreator window?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mostefa
        wrote on last edited by mostefa
        #3

        Hi @Julian

        You may have changed SizePolicy from prefered to minimum ? or to fixed?

        QSizePolicy::Minimum

        http://doc.qt.io/qt-4.8/qsizepolicy.html#details

        1 Reply Last reply
        0
        • JulianJ Offline
          JulianJ Offline
          Julian
          wrote on last edited by Julian
          #4

          here is the image. It's on minimum but it can not maximize

          alt text

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mostefa
            wrote on last edited by mostefa
            #5

            Yes indeed you changed size policy to minumum

            I think that this is the problem

            Just change again Horizontal policy and Vertical policy to prefered

            and maximize will work again

            1 Reply Last reply
            1
            • JulianJ Offline
              JulianJ Offline
              Julian
              wrote on last edited by
              #6

              I changed that but it still do not work. There is another item to change?

              alt text

              M 1 Reply Last reply
              0
              • JulianJ Julian

                I changed that but it still do not work. There is another item to change?

                alt text

                M Offline
                M Offline
                mostefa
                wrote on last edited by
                #7

                @Julian said in Maximize window:

                I changed that but it still do not work. There is another item to change?

                alt text

                Try to rebuild

                1 Reply Last reply
                1
                • JulianJ Offline
                  JulianJ Offline
                  Julian
                  wrote on last edited by
                  #8

                  Nothing happend. I know there is another option but I cant remember which is.

                  M 1 Reply Last reply
                  0
                  • JulianJ Julian

                    Nothing happend. I know there is another option but I cant remember which is.

                    M Offline
                    M Offline
                    mostefa
                    wrote on last edited by
                    #9

                    @Julian said in Maximize window:

                    Nothing happend. I know there is another option but I cant remember which is.

                    I am not seeing any other option that could prevent maximize

                    Have changed your widget only in qt designer?

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mostefa
                      wrote on last edited by mostefa
                      #10

                      Can you share the content of your .ui file?

                      Does your widget refuse only horizontal maximize? or vertical and horizontal maximize?

                      The cause of refusing horiztonal maximize is that

                      -the width of the widget is equal to 1000 and maximum size that the widget could accept is 1000 too so maximize on width will never work , cause the maximum is already reached !

                      alt text

                      1 Reply Last reply
                      2

                      • Login

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