Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [solved] Removing of WindowMaximizeButtonHint makes the window non-resizable? (Qt 5, Mac)

    General and Desktop
    2
    10
    1974
    Loading More Posts
    • 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.
    • C
      crystalidea last edited by

      Removing of WindowMaximizeButtonHint in Qt5.2.0 (was ok in Qt4) makes window/dialog non resizable on Mac. 10.9.1. Is that normal or is it a bug? Is there any workaround?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        What exact version of Qt are you using on which version of OS X ?

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

        1 Reply Last reply Reply Quote 0
        • C
          crystalidea last edited by

          5.2, 10.9.1

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Can you provide a minimal sample that reproduces this ?

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

            1 Reply Last reply Reply Quote 0
            • C
              crystalidea last edited by

              It's called windowflags sample, default sample that comes with Qt
              examples/widgets/widgets/windowflags

              https://www.dropbox.com/s/8aep6rz90mkp9wf/flags_sample.png

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                Looking at the sources, it looks like It's normal.

                You can use the code shown "here":http://qt-project.org/forums/viewthread/27728 to adjust the flags of your widget exactly the way you want it

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

                1 Reply Last reply Reply Quote 0
                • C
                  crystalidea last edited by

                  Thank you, looks promising

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    If this solves your problem, don't forget to update the thread title prepending [solved] so other forum users may know a solution as been found :)

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

                    1 Reply Last reply Reply Quote 0
                    • C
                      crystalidea last edited by

                      Done. Seems like Qt5 changed this behaviour to match Mac policy about it.

                      1 Reply Last reply Reply Quote 0
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by

                        AFAIK yes, that's the goal

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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post