Home > Mobile >  QGraphicsScene: : drawing the image drawForeground, need to move the mouse will display
QGraphicsScene: : drawing the image drawForeground, need to move the mouse will display

Time:12-05

A application, involving the background and foreground image painting, drawing the image background can show in time to see, but the foreground image need to move the mouse on the interface to see; Prospects after the show, if the Alt + TAB to switch to other interface, and then switch back, prospects will disappear, need will be displayed, move the mouse to consult how to solve this problem?

CodePudding user response:

Manually invoke the update?

CodePudding user response:

If you need real-time refresh, you can have new a timer, then time to update or repaint forced to refresh calls QGraphicsItem objects
  •  Tags:  
  • Qt
  • Related