View Single Post
Posts: 270 | Thanked: 239 times | Joined on Dec 2009 @ Czech Republic
#5
THX I did it but I cant see any menu. What I do have to do?
Code:
QWidget *master = new QWidget();
		QAction *action1 = new QAction(tr("&ACTION1"), this);
		QAction *action2 = new QAction(tr("&ACTION2"), this);

		connect(action1, SIGNAL(triggered()), this , SLOT(doAction1()));
		connect(action2, SIGNAL(triggered()), this , SLOT(doAction2()));
		master->addAction(action1);
		master->addAction(action2);

Last edited by Figa; 2010-03-10 at 16:56.