All UI related operations in Qt4 must be done on the UI thread, as QtGui is not thread-safe internally.
Attach a file by drag & drop or click to upload