C++ (Qt)while(!asleep()) sheep++;
C++ (Qt) QPainter p(this); QImage img("c:/temp/qwe.png");
C++ (Qt)// somewhere in constructor...img1 = QImage(":/images/0.png");
C++ (Qt)QPainter p;p.begin(game_map);// ... draw changes herep.end;need_update = true;
C++ (Qt)QPainter p(this);if (need_update) { p.begin; p.drawImage(0,0, game_map); p.end; need_update = false;}