Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

How to create a settings Menu?

$
0
0
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.

Viewing all articles
Browse latest Browse all 18427

Trending Articles