Results 1 to 2 of 2

Thread: CSS cursor property not working inside QWebView

  1. #1
    Join Date
    Aug 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Symbian S60 Maemo/MeeGo

    Default CSS cursor property not working inside QWebView

    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>

  2. #2
    Join Date
    Jun 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: CSS cursor property not working inside QWebView

    This does not work in Google chrome 12 either. The best browser to use for testing maybe Safari 4.

Similar Threads

  1. QWebView Images with UNC path not working
    By michael. in forum Qt Programming
    Replies: 1
    Last Post: 2nd March 2012, 08:46
  2. Change cursor inside QTableview
    By big4mil in forum Qt Programming
    Replies: 4
    Last Post: 15th November 2010, 11:04
  3. Replies: 0
    Last Post: 27th July 2010, 12:48
  4. QSettings Inside QWebView?
    By Jick in forum Newbie
    Replies: 2
    Last Post: 27th February 2010, 04:03
  5. QCheckBox::isChecked() property is not working...
    By Cutey in forum Qt Programming
    Replies: 10
    Last Post: 18th August 2008, 08:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.