class MainWindow : public QWidget { Q_OBJECT public: MainWindow(QWidget *parent = 0); ~MainWindow(); private: Ui::MainWindowUi *ui;
class CToolBar : public QWidget { public: CToolBar(); ~CToolBar(); };
int main(int argc, char *argv[]){ QApplication app(argc, argv); MainWindow mainWnd; CToolBar toolBar; //// ????? CSettingBar settBar; //// ????? app.setActiveWindow(&mainWnd); QApplication::setStyle( new QPlastiqueStyle ); mainWnd.show(); return app.exec();}