This may be totally off-base but you could try something like this:
@
onCompleted: // start timer
onTimerElapsed: // load another one, ie: change source
@
I haven't tried it, but it seems like a good idea, =D, hope this helps
Your question is not fully clear for me.
Are you targeting a Desktop app or Mobile app for Symbian/Meego?
If you target Symbian/Meego you could use the ProgressBar from "Qt Quick Components":http://doc.qt.nokia.com/qt-components-symbian/index.html which looks more native and has more functionalities than the example listed above.
For your control, You could use a Timer object that each time you press that button starts the timer, which then updates the ProgressBar...
Welcome to devnet
Thanks for sharing the solution. Please mark the title line with [Solved]. This helps others to see that there is a solution available, if they have a similar question.
Thanks task_struct, this seems to work. I'm going to try it on the target to check the load. I also added an "off" state to set the image to full opacity when the animation is done:
@
states: [
State {
name: "off"
PropertyChanges { target: image; opacity: 1}
}
]
@
Thanks for your suggestion. I have tried the first option but I was not able to get required results.
now I'll try the second one i.e. through accessing children
eventually found solution!
@
Button {
// ... some needed design stuff
platformStyle: ButtonStyle {
background: "image://theme/color18-meegotouch-button-accent-background"
pressedBackground: "image://theme/color18-meegotouch-button-accent-background-pressed"
}
}
@
it is also possible to make theme and other properties dynamically defined, but for me it was eniugh to have hardcoded value.
some more reading is here: http://harmattan-dev.nokia.com/docs/library/html/qt-components/qt-components-meego-buttonstyle.html
Thanks for good idea but some additional details.
My environment: Win7, MinGW, SDK installed in the directory "C:\QtSDK"
Open cmd window and first of all setup environment varaiables
@c:\QtSDK\Desktop\Qt\4.7.4\mingw\bin\qtenv2.bat@
next we can make & install, but executable file for make will call mingw32-make.exe. So..
@c:\QtSDK\bin\mingw32-make.exe install@
P.S. Someone from QtDesktop project add instructions for win developers please.
You can also set context properties and use the Q_INVOKABLE macro in your C++ Q_Object derived class.
@
class customObject : public QObject
{
Q_OBJECT
public:
...constructor/destructor/assignmentOperator/copyConstructor...(standard functions you should implement)
Q_INVOKABLE void someFunction();
private:
...data
};
//-----------------------------------------------------------
QDeclarativeView* view = newQDeclarativeView(this);
QDeclarativeContext* rootContext = view->rootContext();
rootContext->setContextProperty("NameViewableFromQML", &customObjectInstance);
view->setSource("Something.qml");
@
Now you can do things like this in QML:
NameViewableFromQML.someFunction();
You will also find the missing .sis files in the Start menu in Qt SDK under Symbian. You can also just install them in the correct order if you don't want to create a smart installer (yet).
Just want to have a suggestion before going to real implementation. Actually target is not fully configured and based on this requirement only we have to configure it.
However size of RAM and FLASH cannot be changed.