Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8535

QML WebView "icon" property doesn't work: doesn't change and doesn't emit a "onIconChanged" signal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.7.0
    • None
    • Linux Ubuntu Karmic (x86)
      Maemo 5 (N900): FREMANTLE_ARMEL and FREMANTLE_X86

    Description

      In QML, the WebView.icon property doesn't work correctly, even though the C++ code looks OK to me.

      The property is supposed to return a "QVariant(QPixmap)", and it seems to do. It returns a default "blue globe".
      BUT it doesn't change when new URLs are loaded (either passing new ones or just clicking on links within the Webpage).

      Tried with:
      ...
      WebView {
      ...

      Image {
      id: testfavicon
      anchors.left: parent.left
      anchors.top: parent.top
      }
      ...

      onIconChanged: {
      testfavicon.pixmap = icon;
      }
      }

      Even using an alternative event (i.e. "onTitleChanged"), the even arrives but the icon doesn't change:
      onTitleChanged: {
      testfavicon.pixmap = icon;
      }

      Wee also WebKit bug https://bugs.webkit.org/show_bug.cgi?id=35414

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            wallison Warwick Allison (closed Nokia identity) (Inactive)
            detro Ivan De Marino
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes