Re: Qt and Hildon menu
Thank you, but it still doesnt work.
Code:
QAction *action1 = new QAction(tr("&ACTION1"), this); |
Re: Qt and Hildon menu
what doesnt work, what error do you see , could you please detail so you can solicit some responses.
|
Re: Qt and Hildon menu
It doesnt work because I cant see any menu on the top. Any errors.
|
Re: Qt and Hildon menu
is this all done in a QMainWindow ?
attach the source file if you can. |
Re: Qt and Hildon menu
This is full code.
Code:
class Window : public QMainWindow |
Re: Qt and Hildon menu
making corrections ...
Code:
class Window : public QMainWindow |
Re: Qt and Hildon menu
Thank you. I didnt setCentraWidget.
|
Re: Qt and Hildon menu
Hi krk969!
I'm also new to Maemo and Qt. I tried creating a window with your code. It works, but there is a side effect: When I run the application, two menu items appear, with the name "MENU TITLE / ACTION1" and "MENU TITLE / ACTION2". This is understandable, but what do I do if I don't want the slash signs to appear there? |
Re: Qt and Hildon menu
replace
appMenu = menuBar()->addMenu(tr("MENU TITLE")); with appMenu = menuBar()->addMenu(tr("")); i dont know what i did but my previous post got replaced with this message too. but i guess you will figure it out :) |
Re: Qt and Hildon menu
Thanks!
IT WORKS! :) Now it is nice that this works from code, but is there any way in the UI designer to do this? (I mean the UI designer of Qt Creator for Windows. I use MADDE.) |
All times are GMT. The time now is 04:51. |
vBulletin® Version 3.8.8