Problem with BusyIndicator in embedded web view
-
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.0WebView { 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 ?
-
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.