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 -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -