Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. RPi3, WebView locks the mouse, while keyboard works fine
Qt 6.11 is out! See what's new in the release blog

RPi3, WebView locks the mouse, while keyboard works fine

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 1 Posters 794 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.
  • M Offline
    M Offline
    mewster
    wrote on last edited by
    #1

    I'm trying to dinamically open and close a web view, using

    LayoutVerticalMain->addWidget(&WebView);
    WebView.load(QUrl(url));
    WebView.show();
    

    and

    WebView.hide();
    

    .
    On the main.cpp I called

    QtWebEngine::initialize();
    

    before the

    QMainWindow::show()
    

    The view opens fine, but when I move the cursor over the WebView, the mouse "stops" at its border, without entering. If I use the keyboard's tab key to navigate the page, it works fine. Any clicking in any internal area seems to be ignored.

    I'm using QT 5.12.0 on a raspberry Pi3, cross-compiled from a Ubuntu 16.04.

    Did I miss any requirement, or skip some configuration?
    Thanks.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mewster
      wrote on last edited by
      #2

      Update: it seems that calling the setUrl on the constructor of the QMainWindow the page works fine; if I call the method later (even just before the main window .show() method) the repaint events don't get called

      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