#include class EditWidget; class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow( void ); private: void initMenuBar( void ); EditWidget *edit_widget; };