Quote Originally Posted by cyrba View Post
Hello, i eperimented performances problem with graphicsview and
found a workaround wich can perhaps help,
try it, it is very easy, you only have to reimplement paintEvent function like this
in a subclass :

Qt Code:
  1. class MyFasterGraphicView :public QGraphicsView
  2. {
  3. Q_OBJECT
  4. public:
  5. MyFasterGraphicView( ...);
  6. protected:
  7. ...
  8. void paintEvent ( QPaintEvent * event );
  9. ...
  10. };
  11.  
  12. void MyFasterGraphicView::paintEvent ( QPaintEvent * event )
  13. {
  14. QPaintEvent *newEvent=new QPaintEvent(event->region().boundingRect());
  15. QGraphicsView::paintEvent(newEvent);
  16. delete newEvent;
  17. }
To copy to clipboard, switch view to plain text mode 

I can explain the reason, is someone is interrested,

Have fun,

CyrBa
Indeed the performance is better. Can somebody explain how this improves?