#include <QtGui/qdesktopwidget.h> #ifndef QDESKTOPWIDGET_H class QDesktopWidget: public QWidget{ /* Some contents are skipped to improve readability */ public: int screenNumber(class QWidget const * widget = 0) const /* ... */ }; #endif // QDESKTOPWIDGET_H