简体   繁体   中英

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

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM