#include <QtGui/qpixmap.h> #ifndef QPIXMAP_H class QPixmap: public QPaintDevice{ /* Some contents are skipped to improve readability */ #if defined(Q_WS_X11) || defined(Q_WS_QWS) public: Qt::HANDLE handle() const #endif /* ... */ }; #endif // QPIXMAP_H