Portrait::Portrait(float _x, float _y, float _w, float _h) { x = _x; y = _y; w = _w; h = _h; imgIndex = 0; //loading=false; loadingIndex=0; FIRST_LOAD=true; //ofRegisterURLNotification(this); count = 0; loadFirst(); }
void MyWidget::paintEvent(QPaintEvent *event) { loadFirst(); }