void GLWidget::paintEvent ( QPaintEvent * event ) { QPainter p(this); project_quad_texture(); p.drawImage(event->rect(), texture); }
void GLWidget::paintEvent ( QPaintEvent * event ) { QWidget::paintEvent(event); QPainter p(this); project_quad_texture(); p.drawPixmap(event->rect(), pixmap, event->rect()); }