Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyQt QLineEdit with history

Do you know an easy way to make an "history" on a QLineEdit in PySide/PyQt?

Example: Whenever Enter is pressed, the typed text will be stored, and pressing the "up" or "down" arrows allows you to navigate through the history.

Thank you very much

like image 503
Ben Avatar asked Oct 06 '15 14:10

Ben


1 Answers

Blah....

I just figured that the QComboBox does exactly what I want to do when the "setEditable" is on...

It has a completer, and an history of whatever was typed in the textfield!

like image 116
Ben Avatar answered Oct 07 '22 14:10

Ben