I'm trying to understand the itemChanged signal to be able to update some information. An example of what I'm trying to achieve could be:
def setCoordText(): label1.setText(str(label1.x()) + "," + str(label1.y()))
label1.itemChanged.connect(setCoordText)
so that when the label is moved to another location, it would display the new coordinates. What is wrong/missing here? Why nothing happens?
أكثر...
def setCoordText(): label1.setText(str(label1.x()) + "," + str(label1.y()))
label1.itemChanged.connect(setCoordText)
so that when the label is moved to another location, it would display the new coordinates. What is wrong/missing here? Why nothing happens?
أكثر...