QPainter

luca72 lucaberto at libero.it
Wed Jun 20 11:44:59 EDT 2007


Hello
using qt3 i do the follow for paint some line in a frame

gr = QPainter(self.frame3)
gr drawLine(30,10,30,490)
and the line is draw.

Whit qt4 :
 gr = QtGui.QPainter(self.frame3)
 #gr.setPen(QtGui.QPen(QtCore.Qt.black, 1, QtCore.Qt.SolidLine))
 gr.drawLine(30,10,30,490)
and nothing is draw but i have no error

The frame is the same with the same dimension and relative dimension.

where is the error?

Regards

Luca




More information about the Python-list mailing list