Hello everyone!
I try to draw the Rectangle:
Qt Code:
  1. paint.setBrush(QtGui.QBrush(some gradient))
  2. paint.setPen(QtGui.QPen(QtGui.QColor("black"), 1))
  3. paint.drawRect(x, y, width, height)
To copy to clipboard, switch view to plain text mode 
as the result, this:

rhs8z5.jpg

Why QPen border on top and on right side are shifted?
left and bottom border correct