QWebView does not properly grab the mouse



  • Try creating an empty Qt 5.3.1 project, with a MainWindow and a QWebView.
    Initialize the content of the QWebView:
    @ui->webView->setHtml("<html><head></head><body><textarea></textarea></body></html>");@
    Then start the application, and type something in the textarea.
    Start selecting with the mouse the text you wrote, and while still holding down the mouse button move the cursor outside the window and then back in. You'll see that the mouse is not "captured" anymore.
    It works if you stay within the window, but as soon as you go out, the grab is lost.

    Is this the expected behaviour, or a bug? How can I keep the cursor grabbed?
    Thanks

    EDIT: Bug submitted here: https://bugreports.qt-project.org/browse/QTBUG-41419


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.