c++ - Wider line in QGraphicScene on MainWindow::resizeEvent -


in window i've got qgraphicscene. inside qgraphicscene draw lines (see first picture).

enter image description here

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.

enter image description here

edit: on platforms (os x, windows, gnu/linux)

how fix ?

problem solved :

goview->setrenderhints(qpainter::antialiasing | qpainter::smoothpixmaptransform); 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -