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. Application window can only shrink, not grow, after switch from Qt 4 to Qt 5

Application window can only shrink, not grow, after switch from Qt 4 to Qt 5

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 810 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.
  • B Offline
    B Offline
    Bart_Vandewoestyne
    wrote on 6 Feb 2019, 16:27 last edited by
    #1

    Recently, we switched from Qt 4.8.7 to Qt 5.12.0. One of our applications has a small window of about 600 by 400 pixels when it starts up. After it has started, users could resize it, meaning that they were able to resize the window to a smaller size, but also to a larger size. However, after the upgrade from Qt 4 to Qt 5, the window can only be made smaller, not larger. This is rather annoying, as a user who has downsized the window, can never make it larger again :-(

    I have searched through our code trying to find the root cause for this, but up until now have not found anything. What exactly could be causing this behavior? Any hints on specific things (classes, function names,...) I should look for?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 6 Feb 2019, 19:40 last edited by
      #2

      Nothing that could cause this comes to my mind, but I have one recommendation: try upgrading to Qt 5.12.1, it came out just recently. In my experience, the .0 release was super buggy, the .1 fixed a lot. Perhaps your issue was fixed as well (if it is a bug).

      On my end (working both on QtWidgets and QtQuick apps), I have not seen such resizing issues - everything works correctly.

      (Z(:^

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 6 Feb 2019, 21:20 last edited by
        #3

        Hi
        So if user resize the default 600x400 to smaller, they cant even make it
        the start size again?

        B 1 Reply Last reply 7 Feb 2019, 13:23
        0
        • M mrjj
          6 Feb 2019, 21:20

          Hi
          So if user resize the default 600x400 to smaller, they cant even make it
          the start size again?

          B Offline
          B Offline
          Bart_Vandewoestyne
          wrote on 7 Feb 2019, 13:23 last edited by
          #4

          @mrjj said in Application window can only shrink, not grow, after switch from Qt 4 to Qt 5:

          So if user resize the default 600x400 to smaller, they cant even make it
          the start size again?

          That is correct.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 7 Feb 2019, 21:47 last edited by
            #5

            Hi,

            Can you show how you setup your widget ?

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

            B 1 Reply Last reply 8 Feb 2019, 08:08
            0
            • S SGaist
              7 Feb 2019, 21:47

              Hi,

              Can you show how you setup your widget ?

              B Offline
              B Offline
              Bart_Vandewoestyne
              wrote on 8 Feb 2019, 08:08 last edited by
              #6

              @SGaist said in Application window can only shrink, not grow, after switch from Qt 4 to Qt 5:

              Can you show how you setup your widget ?

              I wish I could... but it's proprietary legacy code and it's hard to understand and trim down to the essentials...

              But no worries: in the mean while the problem is solved. I upgraded from Qt 5.12.0 to Qt 5.12.1 and the problem magically disappeared! :-)

              1 Reply Last reply
              3
              • S Offline
                S Offline
                sierdzio
                Moderators
                wrote on 8 Feb 2019, 08:21 last edited by
                #7

                Yet another proof that 5.12.0 was a big mistake :-)

                OK good that things work for you now. Happy coding!

                (Z(:^

                1 Reply Last reply
                1

                1/7

                6 Feb 2019, 16:27

                • Login

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