Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40583

Unable to use QMacCocoaViewContainer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.7.0 RC
    • 5.3.1, 5.3.2, 5.6.1, 5.6.2, 5.6.3
    • QPA
    • None
    • macOS
    • 3439705c2d4e5a1a2817e91d1ce4553dde81d2fe

    Description

      1. Trying to use QMacCocoaViewContainer in a totally 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
      Resizing of columns in QTableView becomes slow and buggy.

      2. In a real application can also cause crashes and hangs!
      3. To reproduce in the demo app:
      -> press left mouse button in any place in table view, keep holding it and then move the cursor up to the table view horizontal header.
      OR
      -> Do a fast re-sizing of columns in the test app
      4. Demo project is attached.
      5. Screenshots also attached
      6. The patch provided for qnsview.mm by Morten Sørvig at QTBUG-37926 didn't help.

      Update: QNSView mouseDragged error somehow depends on setAttribute(Qt::WA_MacShowFocusRect);

      Update 2 Please see this video for quick demonstration:
      https://www.dropbox.com/s/49ynrsd9b1rry8e/QTBUG-40583.mp4?dl=0
      (download to see in hi-res)

      Update 3 Fast resizing of columns causes problems in TableView widget, see video.

      Update 4 Also noticed the same issues in QSpinBox if some other widget is using QMacCocoaViewContainer

      Attachments

        1. call_stack.png
          call_stack.png
          55 kB
        2. no_attribute_set.mov
          863 kB
        3. QTBUG-40583.tar.gz
          2 kB
        4. shot1.png
          shot1.png
          38 kB
        5. shot2.png
          shot2.png
          46 kB
        6. TestProject.zip
          5 kB
        7. with_attribute.mov
          1.15 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            crystalidea Steven (crystalidea)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes