PDA

View Full Version : CSS cursor property not working inside QWebView



ynonp
29th August 2011, 17:47
Hello,
I'm trying to use a QWebview to display web pages, and came across this annoyance.

Using a css cursor property on an element does not change the cursor type when hovering on the element.

The following page displays a pointing hand when hovering on the link in Safari, but a normal arrow in a QWebview.

Any thoughts ?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body { margin: 0; font-size: 2em; background-color: white; }
h1 { text-align: center; color: red; }
h1 + h1 { color: green; }
h1:last-child { color: blue; }
#quit { background-color: gray; color: white; font-weight: bold; display: block; text-align: right; }

a { cursor: pointer; }
</style>
</head>
<body>
<a id="quit">X</a>
<p id="data"></p>

<a href="#">foo</a>
</body>
</html>

Andre_Mikulec
30th August 2011, 23:39
This does not work in Google chrome 12 either. The best browser to use for testing maybe Safari 4.