See following:
Qt 4:
Qt 5:
Notice how the lines are more jagged with Qt 5 than Qt 4 (both are rendered with OpenGL2 backend).