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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -