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. MacOSX: problem with stucked mouse with modal forms
Qt 6.11 is out! See what's new in the release blog

MacOSX: problem with stucked mouse with modal forms

Scheduled Pinned Locked Moved General and Desktop
24 Posts 3 Posters 7.2k 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.
  • Z Offline
    Z Offline
    zeljko
    wrote on last edited by
    #7

    hm...seem that it's something with QPushButton::default() or QPushButton::autoDefault().
    Forms which does not have QPushButton::default() setted up does not have such problem (no default button on form).

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #8

      Sorry, for the late reply

      Can you post a minimal code sample to reproduce this ? Just to ensure the same setup is used

      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
      0
      • Z Offline
        Z Offline
        zeljko
        wrote on last edited by
        #9

        Here is example of problem (always reproducible)
        http://holobit.homelinux.com:38180/downloads/modalWindowsQtCocoaBug.tar.gz

        Howto reproduce (best way): start modalWins.app (open modalWins.app or by dbl click in Finder).
        Click "Create modal form" button, then click "New dialog", in New dialog form click "New Dialog" , so you have at least 2 dialogs + modal form opened.
        Click OK to close dialog. Click OK again to close second dialog.
        Now try to click anything in modal form ? Can you ? I guess not.
        Ok, now press ESC, so modal form is closed and only QMainWindow is opened. Can you click any button ? No.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zeljko
          wrote on last edited by
          #10

          Here is example of problem (always reproducible)
          http://holobit.homelinux.com:38180/downloads/modalWindowsQtCocoaBug.tar.gz

          Howto reproduce (best way): start modalWins.app (open modalWins.app or by dbl click in Finder).
          Click "Create modal form" button, then click "New dialog", in New dialog form click "New Dialog" , so you have at least 2 dialogs + modal form opened.
          Click OK to close dialog. Click OK again to close second dialog.
          Now try to click anything in modal form ? Can you ? I guess not.
          Ok, now press ESC, so modal form is closed and only QMainWindow is opened. Can you click any button ? No.

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            zeljko
            wrote on last edited by
            #11

            Another note: when you extract tar.gz inside buildXXXX directory is already compiled modalWins.app, so you don't need to install build tools on mac.
            Tested on Mavericks 9.5 (intel mac 64bit).

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              zeljko
              wrote on last edited by
              #12

              Another note: when you extract tar.gz inside buildXXXX directory is already compiled modalWins.app, so you don't need to install build tools on mac.
              Tested on Mavericks 9.5 (intel mac 64bit).

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #13

                The application itself is not deployed so it won't run.

                Anyway, it's reproducible on 10.8.

                You should check the "bug report system":http://bugreports.qt.io to see if you find something similar

                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
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #14

                  The application itself is not deployed so it won't run.

                  Anyway, it's reproducible on 10.8.

                  You should check the "bug report system":http://bugreports.qt.io to see if you find something similar

                  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
                  0
                  • Z Offline
                    Z Offline
                    zeljko
                    wrote on last edited by
                    #15

                    Yes, something similar is here https://bugreports.qt.io/browse/QTBUG-40585 (I've attached this example here), but there's more similar bugs (3-4 at least) about modal windows on MacOSX.
                    I hope that someone will fix it before 4.8.7 is out. This really makes Qt 4.8.6 unuseable under mac cocoa.

                    1 Reply Last reply
                    0
                    • Z Offline
                      Z Offline
                      zeljko
                      wrote on last edited by
                      #16

                      Yes, something similar is here https://bugreports.qt.io/browse/QTBUG-40585 (I've attached this example here), but there's more similar bugs (3-4 at least) about modal windows on MacOSX.
                      I hope that someone will fix it before 4.8.7 is out. This really makes Qt 4.8.6 unuseable under mac cocoa.

                      1 Reply Last reply
                      0
                      • Z Offline
                        Z Offline
                        zeljko
                        wrote on last edited by
                        #17

                        I've attached patch to QTBUG-40585 which fixes problem for me.

                        1 Reply Last reply
                        0
                        • Z Offline
                          Z Offline
                          zeljko
                          wrote on last edited by
                          #18

                          I've attached patch to QTBUG-40585 which fixes problem for me.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #19

                            You should submit your patch through gerrit and make it reviewed for inclusion in Qt

                            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
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #20

                              You should submit your patch through gerrit and make it reviewed for inclusion in Qt

                              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
                              0
                              • Z Offline
                                Z Offline
                                zeljko
                                wrote on last edited by
                                #21

                                I know, but first I must make heavy tests for my patch.Already found one more bug, but that bug exists without my patch too ... yes also about modal windows. Now modal windows works, but cannot when I try to close modal window via close button in title bar it does not work.

                                1 Reply Last reply
                                0
                                • Z Offline
                                  Z Offline
                                  zeljko
                                  wrote on last edited by
                                  #22

                                  I know, but first I must make heavy tests for my patch.Already found one more bug, but that bug exists without my patch too ... yes also about modal windows. Now modal windows works, but cannot when I try to close modal window via close button in title bar it does not work.

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #23

                                    Even if its not 100% working you can submit to review, that will give you the help of other reviewers to pin-point the problem you are encountering. If you see that you have several unrelated bugs then do a submission for each separately.

                                    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
                                    0
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #24

                                      Even if its not 100% working you can submit to review, that will give you the help of other reviewers to pin-point the problem you are encountering. If you see that you have several unrelated bugs then do a submission for each separately.

                                      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
                                      0

                                      • Login

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