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. Unable to use QMacCocoaViewContainer
Forum Update on Monday, May 27th 2025

Unable to use QMacCocoaViewContainer

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 1.6k 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.
  • crystalideaC Offline
    crystalideaC Offline
    crystalidea
    wrote on last edited by
    #1
    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • crystalideaC Offline
        crystalideaC Offline
        crystalidea
        wrote on last edited by
        #3

        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
        0
        • crystalideaC Offline
          crystalideaC Offline
          crystalidea
          wrote on last edited by
          #4

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

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

            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
            0
            • crystalideaC Offline
              crystalideaC Offline
              crystalidea
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • crystalideaC Offline
                crystalideaC Offline
                crystalidea
                wrote on last edited by
                #7

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

                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