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

Mac: Text is selected in QTextEdit/QWebView when window with it is opened and mouse cursor is moved in.

    XMLWordPrintable

Details

    • macOS

    Description

      Steps to reproduce:

      Compile and run "windowflags" example.
      Close "Preview" window.
      Select widget type in controller window - preview will open.
      Move mouse (relatevely fast) into preview window.
      Text in QTextEdit will be selected.

      If you set event filter for textEdit, it will show that it receives tons of QEvent::InputMethodQuery events.

      In similar case with QWebView, webview receives QEvent::Enter, QEvent::MouseMove, and QEvent::MouseButtonPress (when no button were actually pressed), and therefore "thinks" that mouse button is pressed and hold, as no QEvent::MouseButtonRelease is received.

      See attachment with screen capture.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            sergei.nevdakh Sergei Nevdakh
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes