Update question
-
hi every body. i have one thread or function that change the location of one button in 'for' statement or ..... i want to show this change like animation . (exactly in recursion function i want update my forms to show my data)
i do this in .net with refresh() function.i use update() and repaint() int Qt but dont works!
please help me.for example
@
for (int i = 0; i < 10; i++) {
listWidget->addItem( "--" );
this->update(); // i want in each step display changes in my application!Sleep( 100 ); }
@
-
;-) Never try to use Sleep() in your main thread (gui thread).
In addition,
You can try to use QTimer, or call QCoreApplication::processEvents() manually.
-
but how can i show movement of button in my widget ?!! i want show this movement like animation :-(
-
[quote author="ahura_24" date="1336083806"]but how can i show movement of button in my widget ?!! i want show this movement like animation :-([/quote]
QTimeror
QTimeLine
or
the powerful Animation Framework provided by Qt 4.6 +
or
...
-
ummm tnx but do you have article about of ? how can i learn ?