MAJOR CHANGE! I found that Qt is kinda hard to use with console programs.
So... We're now using a GUI instead - it also looks much more convincing.
The QueryWorker class is recycled along with great parts of the old main.