I have generated a std Mobility Project with a QMainWindow base. Have added code for the menu's
However clicking the option (left) button in an any of the emulators (Maemo, Symbian Touch/Non-Touch) shows nothing.
Suggestions?
Thanks - Lindsay
Code:void MainWindow::setupGeneral() { deviceInfo = new QSystemDeviceInfo(this); ui->batteryLevelBar->setValue(deviceInfo->batteryLevel()); connect(deviceInfo, SIGNAL(batteryLevelChanged(int)), ui->batteryLevelBar, SLOT(setValue(int))); // Options Menu QAction *actTest1 = new QAction(tr("Test Item 1"), this); menuBar()->addAction(actTest1); connect(actTest1, SIGNAL(triggered()), this, SLOT(test1())); QAction *actTest2 = new QAction(tr("Test Item 2"), this); menuBar()->addAction(actTest2); connect(actTest2, SIGNAL(triggered()), this, SLOT(test1())); }

Reply With Quote

