hi, i am using an application with menu bar..i created some submenus and actions in the menuBar
my problem is that the menu bar appears with the default keys (Options and exit)
how can i change the default name Options to another text?
Thank you
hi, i am using an application with menu bar..i created some submenus and actions in the menuBar
my problem is that the menu bar appears with the default keys (Options and exit)
how can i change the default name Options to another text?
Thank you
check the link hope will be helpful for you.
http://wiki.forum.nokia.com/index.ph...eft_or_both%29
http://wiki.forum.nokia.com/index.ph...SoftkeysChange
Use Qt-Quick to make your application UI more attractive.
http://store.ovi.com/content/271896 | http://store.ovi.com/content/276199 | http://store.ovi.com/content/276202 | http://store.ovi.com/content/280827
Is there any way I could also make the app with the menu abr, i mean a full screen app without the menu bar.
I mean I don't want the menu bar
Last edited by somnathbanik; 2011-03-29 at 08:27. Reason: added
hi kkrish, i tried the previous links,
the first one ..i am not able to use
no defined Cba() even after adding #include <eikbtgpc.h> and -leikcoctlCba()->RemoveCommandFromStack(0, ESave);
Cba()->AddCommandToStackL(0,EOk,_L("Ok"));
Cba()->DrawDeferred();
as for http://wiki.forum.nokia.com/index.ph...f_widget_in_Qt , i succeeded changing the name of "options" to "menu" , but when i click "menu" no menu appear!!!
Note that in this link http://wiki.forum.nokia.com/index.ph...SoftkeysChange i am able to change the exit to hide and it works great, but when i use the same thing for the left key it doesnt work
any help please?
Last edited by e.merhej; 2011-03-29 at 08:48.
i am using the following
this is working for hide but not changing the options to menumenu = new QAction(tr("&Menu"),this);
menu ->setSoftKeyRole(QAction::NegativeSoftKey);
MainWindow::addAction(menu);
connect(menu , SIGNAL(triggered()),
this, SLOT(Display()));
hid = new QAction(tr("&Hide"),this);
hid->setSoftKeyRole(QAction::NegativeSoftKey);
MainWindow::addAction(hid);
connect(hid, SIGNAL(triggered()),
this, SLOT(hidea()));
bck = new QAction("&Back", this);
connect(bck, SIGNAL(triggered()),this, SLOT(backe()));
menuBar()->addAction(bck);
ex = new QAction("&Exit", this);
connect(ex, SIGNAL(triggered()),this, SLOT(close()));
menuBar()->addAction(ex);
I have not tried to change "Option" but with RHS keys (like exit , back etc) is working fine with the code.
Use Qt-Quick to make your application UI more attractive.
http://store.ovi.com/content/271896 | http://store.ovi.com/content/276199 | http://store.ovi.com/content/276202 | http://store.ovi.com/content/280827
it is discussed here. hope it will work for you.
Use Qt-Quick to make your application UI more attractive.
http://store.ovi.com/content/271896 | http://store.ovi.com/content/276199 | http://store.ovi.com/content/276202 | http://store.ovi.com/content/280827
the best way i can see here is making your custom menu button using two QPushButton in a full screen Qt App.
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
hi again
i am trying to implement the following from the first site by kkrish
i did the following:
CAknAppUi* appUi = dynamic_cast<CAknAppUi*> (CEikonEnv::Static()->AppUi());
appUi->Cba()->RemoveCommandFromStack(0,EOptions);
appUi->Cba()->AddCommandSetToStackL(0,EOk,_L("Ok"));
appUi->Cba()->DrawDeferred();
but getting errors that EOptions and EOk are not defined
how should i defined them?or what should i write instead in my case?
Thank you
I think EOptions is not defined as an softkey, varify in the sdk once again,
Use Qt-Quick to make your application UI more attractive.
http://store.ovi.com/content/271896 | http://store.ovi.com/content/276199 | http://store.ovi.com/content/276202 | http://store.ovi.com/content/280827