0

At first, I have followed this (Painting in a QLabel with paintEvent) and I managed to get the snipping event in the desired qlabel. However, how do I get the self.begin and self.end value then pass and show to the other label initialized in class Ui_MainWindow.

I generated the .ui from qt designer and promote Labella.py to the certain label. Then I convert .ui to .py using pyuic.

In def setupUi I attached self.Tab2_PB_ButtonSnipping.clicked.connect(self.lockRegion) and in the def lockRegion, I want to get the value of the x and y of self.begin and self.end of the Labella.py, then display it in another label.

0 Answers0