PDA

View Full Version : How to use QMenuBar in Qt/Embedded on Windows CE



jrelax
14th April 2009, 03:14
QMenuBar* m_pMainMenu = new QMyMenuBar(this);
QAction* m_pExitAction = m_pMainMenu->addAction(QString());
m_pExitAction->setText("Exit");
m_pMainMenu->setDefaultAction(m_pExitAction);
///////////////////////////
i have some questions:
1.in the case above,the right soft key always shows "Menu" text,how can i set other texts?
2.when i click the right soft key,it popup the submenus,how can i use it like the left soft key?

:)thanks!