Hello.
Qt 4.8.0
QGraphicsView scale factor 3.779527559..
The following code
Qt Code:
  1. painter->setPen(Qt::red);
  2. painter->drawRect(0, 0, 10, 10);
  3.  
  4. painter->setPen(Qt::darkGreen);
  5. painter->drawLine(0, 3, 10, 3);
  6.  
  7. painter->setPen(Qt::blue);
  8. painter->drawLine(3, 2, 3, 7);
  9. painter->drawLine(3, 5, 8, 5);
To copy to clipboard, switch view to plain text mode 
gives (contrast lines in front of other drawings - just for test)
qt1.jpg

It is possible to adjust the view's scale factor to avoid off-lying resections, but it's unacceptable.
May I avoid these strange sticks?