c++ - Wider line in QGraphicScene on MainWindow::resizeEvent -
in window i've got qgraphicscene. inside qgraphicscene draw lines (see first picture).
my bug when resize window code below called fit scene in view.
void gobobmainwindow::resizeevent(qresizeevent *event) { goview->fitinview(goscene->scenerect(), qt::keepaspectratio); qmainwindow::resizeevent(event); }
but this.
edit: on platforms (os x, windows, gnu/linux)
how fix ?
problem solved :
goview->setrenderhints(qpainter::antialiasing | qpainter::smoothpixmaptransform);
Comments
Post a Comment