I have a QPushButton embedded in my QGraphicsScene using a QProxyWidget. When I click the button, I want to change a global game state object and then signal the paint event of the view, to update the entire game. What would be the best way to accomplish this?
Here's my button mousePressEvent:
void Button::mousePressEvent(QMouseEvent * event) {
/**
Trying to signal the QGRaphicsView from here
**/
}
Any help would be greatly appreciated, I can't seem to find any documentation online as to how to manually force a paint event.
Thanks