In a window I've got a QGraphicScene. Inside this QGraphicScene I draw some lines (see the first picture).
My bug is that when I resize the window the code below is called to fit the scene in the view.
void GoBobMainWindow::resizeEvent(QResizeEvent *event)
{
goView->fitInView(goScene->sceneRect(), Qt::KeepAspectRatio);
QMainWindow::resizeEvent(event);
}
But I get this.
EDIT: I get this on all platforms (OS X, Windows, GNU/Linux)
How do fix this ?
Problem solved with :