1 Attachment(s)
QGraphicsView, unmanaged artifact with scrollbars
Creating a minimal QGraphicsScene and QGraphicsView results in a tiny artifact widget obscuring the TOP-LEFT AREA of a QMainWindow (covering part of the menubar). See:
http://www.thirdtablet.com/cadswes/2...ewArtifact.png
This is with Qt 4.3.3. I've tried all sorts of ways of rearranging the creation of the QGraphicsScene and QGraphicsView to get rid of this thing. No luck. ANY IDEAS?
Some relevant code excerpts:
Code:
setCentralWidget (_workspaceStack);
... ... ...
_simGraphicsScene = new SimWsGraphicsScene (this);
_simGraphicsView = new SimWsGraphicsView (_simGraphicsScene, this);
_workspaceStack->addWidget (_simGraphicsView);
... ... ...
SimWsGraphicsScene::SimWsGraphicsScene (QObject* parent
) {
setSceneRect (-40, -40, 1200, 1200);
}
SimWsGraphicsView::SimWsGraphicsView (SimWsGraphicsScene* scene,
{
}
Thanks in advance,
Phil Weinstein
CADSWES, U of Colorado at Boulder, USA
http://cadswes.colorado.edu/
Re: QGraphicsView, unmanaged artifact with scrollbars
Solved. Sorry about this. The artifact was a Q3CanvasView which was tentatively replaced by the new QGraphicsView. Hiding that unmanaged Q3CanvasView did the trick.