#include <QtCore/qstring.h> #ifndef QSTRING_H class QString{ /* Some contents are skipped to improve readability */ public: void truncate(int pos); /* ... */ }; #endif // QSTRING_H