#include #include class SGIStyle : public QStylePlugin { public: SGIStyle(); QStringList keys() const; QStyle *create( const QString& ); }; SGIStyle::SGIStyle() : QStylePlugin() { } QStringList SGIStyle::keys() const { QStringList list; list << "SGI"; return list; } QStyle* SGIStyle::create( const QString& s ) { if ( s.lower() == "sgi" ) return new QSGIStyle(); return 0; } Q_EXPORT_PLUGIN( SGIStyle )