Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QWebView does not properly grab the mouse
QtWS25 Last Chance

QWebView does not properly grab the mouse

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 792 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    daniele
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved