#include <QtGui/qdesktopservices.h> #ifndef QDESKTOPSERVICES_H #ifndef QT_NO_DESKTOPSERVICES class QDesktopServices{ /* Some contents are skipped to improve readability */ public: static bool openUrl(struct QUrl const & url); /* ... */ }; #endif // QT_NO_DESKTOPSERVICES #endif // QDESKTOPSERVICES_H