[SOLVED] How to disable switch to I-beam cursor on text hovering in QGraphicsWebVew?
-
wrote on 18 Jan 2011, 23:27 last edited by
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?
-
wrote on 21 Jan 2011, 09:55 last edited by
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) -
wrote on 21 Jan 2011, 13:42 last edited by
Thanks, Benjamin.
stylesheet "body { -webkit-user-select: none; cursor: default; }" in QWebSettings::setUserStyleSheetUrl() solve the problem
3/3