Hello, i have this code

QMenu yampMenu = menuBar.addMenu("&Yamp");
QMenu extrasMenu = menuBar.addMenu("&Extras");
themeMenu = menuBar.addMenu("&Theme");

themeGroup = new QActionGroup(themeMenu);
QAction lightTheme = new QAction("Light", themeMenu);
lightTheme.setCheckable(true);
QAction darkTheme = new QAction("Dark", themeMenu);
darkTheme.setCheckable(true);
themeGroup.addAction(lightTheme);
themeGroup.addAction(darkTheme);
themeMenu.addAction(darkTheme);
themeMenu.addAction(lightTheme);
lightTheme.setChecked(true);

but i the QMenuBar doesn't show, what i'm doing wrong?
_______________________________________________
Qt-jambi-interest mailing list
Qt-jambi-interest@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-jambi-interest

Reply via email to