Is nit possible to use painter.drawText with updating text
Unsolved
General and Desktop
-
Hello,
I am trying to adapt .painter.drawText(0, 20, text); on my code and kindly would like to ask if it is possible adding the text I have defined on another function as signal.
def paintEvent(self, event): painter = QtGui.QPainter(self) painter.drawImage(0, 0, self.image) if not self.drawROI: return width = self.image.width() height = self.image.height() painter.setPen(QtGui.QPen(QtCore.Qt.red, 2)) painter.drawRect(30,30,40,40) painter.drawText(0, 20, videoframe.textChanged); self.update()
-
Hi and welcome to devnet,
Are you trying to use a signal in your drawText call ?