Qt: restore time where you left off

This copies the MacOS way

Close #5315