Hi, I need to add menu (Blackberry style), but I can’t. My proyect use QWidget, UI.
I tested this code:
…
// Create the application menu
Menu *menu = new Menu;
// Create the actions and add them to the menu
ActionItem *actionOne = ActionItem::create()
.title(“Action 1”);
ActionItem *actionTwo = ActionItem::create()
.title(“Action 2”);
menu->addAction(actionOne);
menu->addAction(actionTwo);
// Set the menu of the application
Application::instance()->setMenu(menu);
…
(from http://developer.blackberry.com/cascades/documentation/ui/navigation/menus.html)
—
Can I use Cascades objects (ActionItem, Menu) in Qt? If I use qt objects (QMenubar, QAction), the menu is always visible.
↧