#include <QtCore/qdir.h> #ifndef QDIR_H class QDir{ /* Some contents are skipped to improve readability */ public: bool exists() const /* ... */ }; #endif // QDIR_H