Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SetCursor not working over QWebView?
Forum Updated to NodeBB v4.3 + New Features

SetCursor not working over QWebView?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 900 Views 1 Watching
  • 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.
  • P Offline
    P Offline
    pmh4514
    wrote on last edited by
    #1

    I'm using Qt5.3 on Windows, and am trying to set a custom cursor as follows:
    @
    QImage image(":/images/eyedropper.png");
    QCursor cur(QPixmap::fromImage(image));
    QApplication::setOverrideCursor(cur);
    @

    This works, but the cursor is application wide, which is not what I want.
    Instead, I want the cursor to apply over a QWebView widget which is embedded in my MainWindow

    if instead of QAppliation::setOverrideCursor(cur) I call _myWebView->setCursor(cur) I do not see any errors, but the cursor never changes.

    Am I doing something wrong or is there a known inability to use setCursor with QWebView?

    edit: I have turned on mouse-tracking on the QWebView but it still doesn't work.

    Thanks

    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