Getting the data has been moved directly into the Qt thread. It is much
more stable. Ready to merge in master branch.