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

authentication - Mongodb revoke acccess to connect test database -

How to merge four videos on one screen with ffmpeg -

Receive udp packets in android gstreamer -