Thank you so much, Wysota! You are alays so helpful!

Indeed I forgot to add Q_IMPORT_PLUGIN(qjpeg)

All I had to do now was include <QtPlugin> and do "make clean"
and everything worked like magic!