#include <QtSvg/qgraphicssvgitem.h> #ifndef QGRAPHICSSVGITEM_H #ifndef QT_NO_GRAPHICSVIEW class QGraphicsSvgItem: public QObject, public QGraphicsItem{ /* Some contents are skipped to improve readability */ public: virtual int type() const /* ... */ }; #endif // QT_NO_GRAPHICSVIEW #endif // QGRAPHICSSVGITEM_H