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

wrong mouse press event in non resizable QWidget's lower right corner

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.1
    • Fix Version/s: None
    • Component/s: QPA
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      Reproduction:

      Create a MainWindow, override its mousePressEvent (...) method and set a breakpoint there (or a print to stdout). Set a fixed size to it,  so the lower right corner will not have any resizing grip showing. Place your mouse cursor on the lower right corner of the MainWindow. Press and hold any mouse button.

      Expected:

      Your stdout should print "mouse pressed"

      Actually Happening:

      Nothing is printed, the "mouse pressed" will however show up when you release the mouse. 

      Conclusion:

      This only happens on MacOs. When you place your cursor anywhere else on the Widget, the mouse press event happens exactly when you press the mouse (as expected).

      See attached minimal reproduction example.

       

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            konradgl Konrad Glas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes