Results 1 to 5 of 5

Thread: QWebView and Favicons

  1. #1
    Join Date
    Feb 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Question QWebView and Favicons

    I have a QWebView in my app. Inside this QWebView I have an HTML page which has a list of websites and some details about those sites. Next to each site I want to display the favicon of that website. This works in Webkit. However, in my QWebView the icons don't show. It just shows the alt text for the icons. I'm using an <img> tag to try to display the favicons. I do have QWebSettings::LocalContentCanAccessRemoteUrls set on the QWebView so that isn't the issue.

    I would greatly appreciate any help on this issue. Thanks!

  2. #2
    Join Date
    Feb 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWebView and Favicons

    Anyone got any ideas?

  3. #3
    Join Date
    Feb 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWebView and Favicons

    Nothing..?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QWebView and Favicons

    Please provide some code you have written to do that. It's hard to discuss the situation without it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jan 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWebView and Favicons

    QtWebKit I guess it is qt releated.
    2 topicpaster: actually you have to use documented function:
    QIcon QWebSettings::iconForUrl ( const QUrl & url ) [static]
    Returns the web site's icon for url.

    If the web site does not specify an icon, or the icon is not in the database, a null QIcon is returned.

    Note: The returned icon's size is arbitrary.

    See also setIconDatabasePath().

    Unfortunatelly in 4.6 qtwebkit it wont work from some strange reasons. Some one from qt team broke it, I guess.
    http://bugreports.qt.nokia.com/browse/QTWEBKIT-97

Similar Threads

  1. QWebView + img + OSx
    By bunjee in forum Qt Programming
    Replies: 3
    Last Post: 14th December 2009, 20:47
  2. QWebView
    By giusepped in forum Qt Programming
    Replies: 3
    Last Post: 18th March 2009, 05:32
  3. QWebView
    By SailinShoes in forum Qt Programming
    Replies: 0
    Last Post: 16th January 2009, 07:22
  4. QWebView
    By ivi2501 in forum Qt Programming
    Replies: 1
    Last Post: 30th December 2008, 12:57
  5. QwebView
    By peace_comp in forum Qt Programming
    Replies: 0
    Last Post: 30th July 2008, 18:20

Tags for this Thread

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.