[SOLVED] How to disable switch to I-beam cursor on text hovering in QGraphicsWebVew?
-
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?
-
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) -
Thanks, Benjamin.
stylesheet "body { -webkit-user-select: none; cursor: default; }" in QWebSettings::setUserStyleSheetUrl() solve the problem