#include <QtGui/qx11embed_x11.h> #ifndef QX11EMBED_X11_H class QX11EmbedWidget: public QWidget{ /* Some contents are skipped to improve readability */ protected: virtual void resizeEvent(struct QResizeEvent*); /* ... */ }; #endif // QX11EMBED_X11_H