You create file on the stack and then you pass a pointer to it to a non-blocking method --- this won't work, because QFtp::put() only stores that pointer and returns... and then file gets destroyed leaving ftp with a dangling pointer.
You can't access widgets from a non-GUI thread directly. Better define a signal and connect it via queued connection to that text edit's append() slot.





Reply With Quote
Bookmarks