Add a dependency to Qt. First step towards #1
We don't want to print a \r, so print before adding one.
Use a type for callbacks to make things clearer and have a default callback.
Whitespace fix.