#include <QtCore/qurl.h> #ifndef QURL_H class QUrl{ /* Some contents are skipped to improve readability */ public: int port() const /* ... */ }; #endif // QURL_H