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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.12.1
    • QPA
    • None
    • macOS

      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.

       

       

        1. mousepressbug.cpp
          0.8 kB
          Konrad Glas
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            konradgl Konrad Glas
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes