Quantcast
Viewing all articles
Browse latest Browse all 4972

How can I implement a fixed update rate for a custom QDeclarative item?

Override QDeclarativeView::paintEvent(QPaintEvent *event) if you propogate the event to QDeclarativeView::paintEvent(event); it will paint, otherwise won’t. void my_class::paintEvent(QPaintEvent *event) {   if (doIWantToRePaintTheScreen()) {     QDeclarativeView::paintEvent(event);   }   else     event->accept(); }

Viewing all articles
Browse latest Browse all 4972

Trending Articles