You can draw on QImage in non-GUI thread but not on QPixmap.