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

Mouse press / release issue on window border

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 6.2.1, 6.3.0
    • Widgets: Main Window
    • None
    • macOS

    Description

      If I move the mouse over the window border, until the mouse cursor is changed to the resizing cursor, then perform a click, I get both mouse events after releasing the mouse. 

      I think the events should not be delivered at all in this case.

      How to reproduce: 

      I loaded the Window Flags Example, added this code:

      previewwindow.h:

      void mousePressEvent(QMouseEvent *event);
      void mouseReleaseEvent(QMouseEvent *event);

      previewwindow.cpp:

      void PreviewWindow::mousePressEvent(QMouseEvent *event)

      Unknown macro: {   qDebug() << "PRESS!!"; }

       

      void PreviewWindow::mouseReleaseEvent(QMouseEvent *event)

      Unknown macro: {   qDebug() << "RELEASE!"; }

      Then start the application, and click once the preview window (to bring it into focus), then move the mouse to the border of the frame until the mouse cursor changes to resize cursor, then click. In the application we can see that the two events (mouse press and release) are delivered together. 

      It only reproduces right after starting the application, until the application first looses focus. 

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            zxn Zoltan Szocs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes