PDA

View Full Version : How to remove focus rectangle on image links in QtWebkit?



sfcheng77
24th January 2011, 02:59
When I click on an image link in a QWebView, I will see a annoying focus rectangle in dotted lines around the image. I am fine with the rectangle. But, what is annoying is that the rectangle breaks the image button into several pieces like a dotted table. The image itself is a single piece of image in the html source. Here is a screenshot:

5815

Is this a bug? Is there anyway to fix the issue so that the rectangle is a whole piece as well? Otherwise, any option to remove the focus rectangle completely?

Lykurg
24th January 2011, 06:52
Couldn't you use normal java script to remove the focus? onclick and blur.