Search code examples
pythonpyqtpysidemayaqlineedit

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


Solution

  • 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!