python 3.x - Pyqt 5 how to make QLineEdit clickable -


i wonder how make qlineedit clickable because want when qlineedit clicked clear line's text. please need help!

class clickablelabel(qlabel):

clicked = pyqtsignal() def __init__(self,name, widget):     super().__init__(name, widget) def mousepressevent(self, qmouseevent):     self.clicked.emit() 

Comments

Popular posts from this blog

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -