Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

[SOLVED]QTimer locks my app

$
0
0
I have something like this: QToolButton *bla = new QToolButton(); QPropertyAnimation *anim = new QPropertyAnimation(this, "geometry"); anim->setDuration(300); anim->setvalues(...) //bla bla not important anim->start(); QTimer timer; timer.start(5000); bla->setDisabled(true); while(timer.isActive()) {} buzzButton->setEnabled(true); this is a basic snippet from my actual code… But I am pretty sure that it is from the timer. Because if I don’t add it it goes perfectly. Thank you in advance Qt 4.8.4. MSVC2008 (Windows 7 ×86)

Viewing all articles
Browse latest Browse all 22112