I have a console input in my Qt based application, it’s a QLineEdit, all Ui is designed via QtDesigner. Is it any easy way way to handle up and down arrows in order to implement input history? The ‘go to slot’ only show returnProcessed signal, no way i can see to handle up and down arrows 🙁
I have a console input in my Qt based application, it’s a QLineEdit ,
Share
you can install event filter and watch your line edit event in your window class. Below is an example:
declare event handler method on your window class:
window constructor
event handler implementation:
hope this helps, regards