QFileIconProvider is not a QObject, so you can't use Q_OBJECT with it.