Hi all,


I want to create menu option in left soft key, like when I click on left soft key, it show show with "option_1" and "option_2" , when I select any of the key certain operation has to happen.

For the device N8

I tried with below code

QAction *optionsAction = new QAction(tr("Options"), this);
m_menu = new QMenu(this);
m_menu->addAction(tr("option_1"), this, SLOT(menuAction()));
m_menu->addAction(tr("option_2"), this, SLOT(menuAction()));
optionsAction->setMenu(m_menu);
optionsAction->setSoftKeyRole(QAction::PositiveSoftKey);
addAction(optionsAction);


I can see the "Option" in left soft key, but when I click on it nothings happens

I am testing this with simulator



I also gone through
http://wiki.forum.nokia.com/index.ph...an_application
and
http://wiki.forum.nokia.com/index.ph...to_QMainWindow

There its working for them

Please let me know what I am missing


I am Using Qt 4.7, checked with windows and mac os


Thanks in advance

Siddu