Hi,

you can use a QPixmap only inside the GUI thread thus you have to initialize QApplication first. Or use QImage instead, which don't need a GUI thread.