Having a Qt and ncurses based application, what is the best way to refresh the screen every second, while waiting for user input? (e.g. show the clock and get user input).
I need the best compromise between CPU usage and application responsiveness.
To be more specific with the question, how to get user input and still use QTimer and the signal-slot mechanism?
When using the code below, the timers doen't work.
nodelay(stdscr,true); while(1) { sleep(1); getch(); processInput(); }