Qt Forum

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

    Unable to use QMacCocoaViewContainer

    General and Desktop
    2
    7
    1260
    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.
    • crystalidea
      crystalidea last edited by

      1. Trying to use QMacCocoaViewContainer in absolutely different widget. Then when trying to interact with QTableView, the output debug log is full of
        "QNSView mouseDragged: Internal mouse button tracking invalid (missing Qt::LeftButton)"
        entries
      2. In a real application it can also cause hangs and crashes!
      3. To reproduce
        -> press left mouse button in any place in table view in the sample project, keep holding it and then move the cursor to the table view horizontal header.
        OR
        -> Do a fast re-sizing of columns in the test app

      Demo project to reproduce:
      https://www.dropbox.com/s/5f80jrx8klqf5wu/TestProject.zip

      Does anyone have a workaround? Tried probably everything we could :(

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

        Hi,

        What version of Qt are you using on what version of OS X are you running ?

        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
        • crystalidea
          crystalidea last edited by

          Hi, Samuel,

          OS X 10.9.4 and also on 10.7.6, Qt Creator latest, Qt 5.3.1 compiled from source:
          ./configure -no-openssl -nomake examples -nomake tests -platform macx-clang-32 -no-c++11

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

            Crazy thing: it somehow depends on setAttribute(Qt::WA_MacShowFocusRect);
            No problem if this flag is not set.

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

              Sounds like it might be a bug…

              You should take a look at the "bug report system":http://bugreports.qt-project.org to see if it's something known. If not please consider opening a but report providing a minimal compilable example showing the behavior.

              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
              • crystalidea
                crystalidea last edited by

                https://bugreports.qt-project.org/browse/QTBUG-40583
                Minimal example there and also in this thread (see top post)

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

                  Please see this video for quick demonstration:
                  https://www.dropbox.com/s/49ynrsd9b1rry8e/QTBUG-40583.mp4?dl=0

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