#include <QtGui/qstringlistmodel.h> #ifndef QSTRINGLISTMODEL_H #ifndef QT_NO_STRINGLISTMODEL class QStringListModel: public QAbstractListModel{ /* Some contents are skipped to improve readability */ private: class QStringList lst; /* ... */ }; #endif // QT_NO_STRINGLISTMODEL #endif // QSTRINGLISTMODEL_H