Ahh... this all thing is in your main...
I think that working with QIODevice needs a running event loop (but I am not sure).
Put this in to a class, and run this code after the event loop is running, that will be a good idea even if its not the problem.
Maybe some one else can confirm if this is the problem though.
EDIT:
[re-edit] I take back what I said here.
Bookmarks