Problem setting the scene rectangle
Solved
General and Desktop
-
The first trace statement shows that I am setting the scene rectangle to (-50, -29, 628, 176).
The second trace statement shows that the scene rectangle is (0, 0, 0, 0).
sceneRect never returns anything other than (0, 0, 0, 0) for me.Any suggestions?
void MyQGraphicsView::SetSize(const QRect& size) { Trace("setting view size to (%d, %d, %d, %d)", size.x(), size.y(), size.width(), size.height()); setSceneRect(size); Trace("***** view size == (%d, %d, %d, %d)", sceneRect().x(), sceneRect().y(), sceneRect().width(), sceneRect().height()); }
-