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. [SOLVED] How to disable switch to I-beam cursor on text hovering in QGraphicsWebVew?
QtWS25 Last Chance

[SOLVED] How to disable switch to I-beam cursor on text hovering in QGraphicsWebVew?

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 2 Posters 4.2k 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.
  • A Offline
    A Offline
    a.v.mich
    wrote on 18 Jan 2011, 23:27 last edited by
    #1

    Hello, i want to disable switch Qt::ArrowCursor on Qt::IBeamCursor when cursor hover the text in QGraphicsWebView, but keep switching on link hovering. Is there any easy ways?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      benjamin.poulain
      wrote on 21 Jan 2011, 09:55 last edited by
      #2

      Nope, no easy shortcut there. The engine switch the cursor to follow what is defined in CSS.

      You could:
      -reset the cursor on hover in C++
      -set a user stylesheet on the page (which will only works for pages not defining the cursor)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        a.v.mich
        wrote on 21 Jan 2011, 13:42 last edited by
        #3

        Thanks, Benjamin.
        stylesheet "body { -webkit-user-select: none; cursor: default; }" in QWebSettings::setUserStyleSheetUrl() solve the problem

        1 Reply Last reply
        0

        1/3

        18 Jan 2011, 23:27

        • Login

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