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 found the answer to signal-slot mechanism not working inside while loop, is QCoreApplication::processEvents(); So, to receive the signals:
while(1) { sleep(1); getch(); processInput(); QCoreApplication::processEvents(); }