![]() |
Qt and Hildon menu
Hello,
can someone tell me, how to get the menu, that appears from the top (for example when pressing clock in standby mode)? QMenuBar is creating ad different style menu. I'm using Qt 4.5 and Maemo 5. |
Re: Qt and Hildon menu
Depends on the actual build. A while ago you had to define a property o the QActions in it, nowadays it's automatic.
Hildon menus Hildon menus are supported by Qt. qt-4.5.3-xxxx-maemo4 packages needs QActions in a "fremantle" menu. Packages with version > qt-4.5.3-xxxx-maemo4 hildonize the menu automaticall. This and many other goodies found on http://wiki.maemo.org/Qt4Hildon |
Re: Qt and Hildon menu
Please, can you give me some example?
|
Re: Qt and Hildon menu
Quote:
Code:
action1 = new QAction(tr("&ACTION1"), this); |
Re: Qt and Hildon menu
THX I did it but I cant see any menu. What I do have to do?
Code:
QWidget *master = new QWidget(); |
Re: Qt and Hildon menu
Quote:
|
Re: Qt and Hildon menu
Sorry I did it too late :)
|
Re: Qt and Hildon menu
as mentioned in my post above you need to do this
QMenu *menu = menuBar()->addMenu(tr("MENU TITLE")); on a QMainWindow object to see the menu. and then actions need to be added to this menu object. |
Re: Qt and Hildon menu
I dont understand what is menu?
|
Re: Qt and Hildon menu
Quote:
ive added more details to my previous post above |
All times are GMT. The time now is 19:16. |
vBulletin® Version 3.8.8