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