PDA

View Full Version : Multiple QGrphicsViews and scenes cause app to freeze.



justin123
8th January 2012, 22:06
I'm using a mdi area to view dialog boxes most of which have its own graphics view and scene, but when two widgets with a graphics view and a scene are shown the application freezes. So I pressed the pause button and it seems that its hanging somewhere in QWidget::show(). The funny thing is that it only does this when more the one graphics view is visible. Any ideas?

wysota
9th January 2012, 05:56
Please provide some minimal code that demonstrates the problem.

justin123
9th January 2012, 23:38
I fixed it. calling setBackgroundBrush in the drawForeground method setting a new QBrush each time (which I shouldn't have been doing).