Results 1 to 2 of 2

Thread: How to remove focus rectangle on image links in QtWebkit?

  1. #1

    Default How to remove focus rectangle on image links in QtWebkit?

    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:

    Untitled.png

    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?
    Last edited by sfcheng77; 24th January 2011 at 03:04.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to remove focus rectangle on image links in QtWebkit?

    Couldn't you use normal java script to remove the focus? onclick and blur.

Similar Threads

  1. Replies: 4
    Last Post: 1st November 2010, 05:01
  2. How can i avoid QPushButton Focus Rectangle
    By nightroad in forum Newbie
    Replies: 8
    Last Post: 4th October 2010, 10:06
  3. How to remove the dotted rectangle of selection
    By jiveaxe in forum Qt Programming
    Replies: 5
    Last Post: 18th April 2010, 22:00
  4. Hide the focus rectangle of a QGraphicsLineItem
    By ronno in forum Qt Programming
    Replies: 2
    Last Post: 16th June 2009, 10:47
  5. Preventing blue focus rectangle
    By MrGarbage in forum Qt Programming
    Replies: 2
    Last Post: 21st December 2007, 15:36

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.