Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Problem with BusyIndicator in embedded web view
Forum Update on Monday, May 27th 2025

Problem with BusyIndicator in embedded web view

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 2.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alicemirror
    wrote on 13 Aug 2011, 13:17 last edited by
    #1

    Hi to all,

    I am experiencing a problem on a project targetted for symbian and desktop with the BusyIndicator component.

    The involved code is the following:
    @
    import QtQuick 1.0
    import QtWebKit 1.0
    import com.nokia.symbian 1.0

    WebView {
        id: webView
        // The url should be overridden by the calling program
        url: "http://projects.developer.nokia.com/blackcatcuttingstudio"
        smooth: false
        focus: true
    
        // The busy indicator component should run until the web page is not loaded
        BusyIndicator {
            id: indicator1
            running: true
            width: 150
            height: 150
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.verticalCenter: parent.verticalCenter
        }
    
        // Nothing should be done
        onLoadStarted: {
        }
        // When finish loading the busy indicator is stopped and hidden
        onLoadFinished: {
            indicator1.running = false;
            indicator1.opacity = 0;
        }
    }
    

    @

    When the program starts, i receive these two strange warnings on the console:

    @
    file:///Users/enrico/QtSDK/Desktop/Qt/473/gcc/imports/com/nokia/symbian/BusyIndicator.qml:53:5: QML QDeclarativeImage_QML_57:
    Failed to get image from provider: image://theme/qtg_anim_spinner_large_1
    file:///Users/enrico/QtSDK/Desktop/Qt/473/gcc/imports/com/nokia/symbian/BusyIndicator.qml:53:5: QML QDeclarativeImage_QML_57:
    Failed to get image from provider: image://theme/qtg_anim_spinner_large_1
    @

    It seems that the indicator is asked to run when something else has not yet completely loaded...

    Someone has ideas ?

    Enrico Miglino (aka Alicemirror)
    Balearic Dynamics
    Islas Baleares, Ibiza (Spain)
    www.balearicdynamics.com

    1 Reply Last reply
    0
    • F Offline
      F Offline
      favoritas37
      wrote on 15 Oct 2011, 16:25 last edited by
      #2

      Hello, i had the same problem.

      It seems something happens when setting the height and width parameters.
      I removed them and the failure messages had disappeared.

      For a magical reason the size of the indicator turned out to be exactly what i wanted so i didn't have any problem.

      But indeed if someone wants to set the size what should he do? Work only with the anchors?

      EDIT: forgot to mention that my BusyIndicator was in a simple Rectangle contained in a Flickable container so i suppose it has nothing to do with the WebView.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved