But what does a widget plugin has to do with an imageformat plugin (apart from the "plugin" in the name)?

The imageformat plugin has to be placed in $QTDIR/plugins/imageformats.