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. Designer regression in Qt 4.8.5 ???
Forum Updated to NodeBB v4.3 + New Features

Designer regression in Qt 4.8.5 ???

Scheduled Pinned Locked Moved General and Desktop
9 Posts 2 Posters 2.5k 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.
  • M Offline
    M Offline
    MuldeR
    wrote on last edited by
    #1

    Today I noticed a strange behavior in Qt Designer (version 4.8.5). When I load an existing form containing a Grid layout and insert another label, the window - all of a sudden - becomes much wider. This happens as soon as I resize the window - either vertically or horizontally - after inserting the label. It's enough if I resize the window by a single pixel to trigger this effect. And there is absolutely no way to make it smaller again! Had to revert to an older backup copy!

    Existing form:
    !http://i.imgur.com/MzshuDw.png(Before)!

    After new label was inserted:
    !http://i.imgur.com/DYGnnu1.png(After)!

    Note that my window became much wider and can not be made smaller again!

    Tried with Designer from Qt 4.8.4 and there was no such behavior at all. After the label has been inserted, the window can still be resized freely. Does not become much wider suddenly at all. And can be resized back to its original size just fine. Even more strange: If I modify the .UI file in Designer 4.8.4 and then open it in 4.8.5, there is no problem either. Only inserting the label in Designer 4.8.5 causes the trouble. Any ideas? Is this a regression?

    If you want to try yourself, the original .UI file is here:
    "preferences.ui":http://pastie.org/private/2w6pjccsvfmgnzhiwmogea

    Regards,
    MuldeR

    My OpenSource software at: http://muldersoft.com/

    Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

    Go visit the coop: http://youtu.be/Jay...

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuldeR
      wrote on last edited by
      #2

      Bump ...

      My OpenSource software at: http://muldersoft.com/

      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

      Go visit the coop: http://youtu.be/Jay...

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

        Nobody ???

        My OpenSource software at: http://muldersoft.com/

        Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

        Go visit the coop: http://youtu.be/Jay...

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Not really. I'm observing this since you have posted it the first time, but I can't say for sure that I've seen this happen. There are some cases where the layouts get too big without any apparent reason, but I can't reliably pinpoint the source of the problem.

          And here, it seems you add too many spacers! It is enough to put all checkboxes in a vertical layout and it will stretch automatically. You only need one spacer as the last item in the layout if you want to pack the lines together.

          (Z(:^

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

            I have added fixed size spacers between the checkboxes, because I want a fixed distance between those. Surely, one can discuss whether this is the "perfect" design. But after all it comes down to personal preferences.

            Anyway, I don't think my design is "illegal". At least I have never seen any note like "Qt supports up to N spacers in a layout. If you add more, crazy unpredictable things are going to happen!". So if it's not illegal, then it is supposed to work correctly. And if it is illegal, there should be an error message rather than undefined behavior. Otherwise I'd call this a bug...

            --

            Most important:

            • It works perfectly fine until I add another "row"
            • I don't think what happens makes any sense, or do I miss something?
            • There is no such issue in Qt 4.8.4, but in Qt 4.8.5 - regression?

            My OpenSource software at: http://muldersoft.com/

            Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

            Go visit the coop: http://youtu.be/Jay...

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Right, I did not know those are fixed spacers and I just wanted to tell you that in case you were unaware. I think your solution is perfectly legal :)

              This might indeed be a regression, you can check Jira if it was reported and open an issue there. Please post the url here, I'd like to see the progress on this. But, to be honest, this seems so minor that it might not get fixed by anybody, you are best off trying to fix that yourself, probably... on the other hand, I am slowly starting work on some Qt bugs, so maybe I will take a look here, too.

              (Z(:^

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MuldeR
                wrote on last edited by
                #7

                Here we go:
                https://bugreports.qt-project.org/browse/QTBUG-33110

                My OpenSource software at: http://muldersoft.com/

                Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

                Go visit the coop: http://youtu.be/Jay...

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  MuldeR
                  wrote on last edited by
                  #8

                  So much about that:
                  [quote]Things like this may happen when minimum sizes of controls grow with changes in Qt over time in forms that have not been touched for a while.

                  Status: Closed[/quote]

                  Seems like there is no interest to investigate the bug. So I'm locked to Qt Designer v4.8.4 with my project then, what a pity :-/

                  My OpenSource software at: http://muldersoft.com/

                  Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

                  Go visit the coop: http://youtu.be/Jay...

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #9

                    Indeed.

                    (Z(:^

                    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