[Qt-interest] widget update problem
"Alexander Carôt"
alexander_carot at gmx.net
Thu Oct 1 23:38:54 CEST 2009
Hi all,
I have a question related to a simple animation of a widget: After the click of a button I want to make another widget visible and moving it from left to right. I created a slot, which is triggered by the button click:
void JamDesk::jamButtonClicked(){
ui.LMixer->setVisible(true);
for (int i=1;i<5;i++){
ui.LMixer->setGeometry(i, ui.LMixer->y(),
ui.LMixer->width(),ui.LMixer->height() );
this->update();
sleep(1000);
}
}
So, it should be visible and then move from x-coordinate 1 to 4 and after each move it should stop moving for one second. This, however, doesn't work: What happens instead is that I don't see anything for 5 seconds and then it shows up at the final and correct spot. Update and repaint don't work althoug the widget has updates enabled.
Can anyone tell where my problem is ?
Thanks
-- A l e x
--
Dr.-Ing. Alexander Carôt
Email : Alexander at Carot.de
Tel.: +49 (0)177 5719797
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
More information about the Qt-interest-old
mailing list