How to add a button on the panel at the bottom of the screen for Qt Nokia?

I am developing an application for my Nokia N8 running Nokia Belle, and would like to add buttons between the left arrow button and the menu button on the panel at the bottom of the screen.

An example of what I mean can be seen when playing a station in the Nokia Internet Radio application, which, as I understand it, is a Mobile Qt Widget (not Qt Quick) application.

After searching ( http://www.developer.nokia.com/Community/Discussion/showthread.php?233396-QMenu-in-Symbian-Belle-in-Qt-C ), I tried this code, but the button does not appear:

QAction *pDeleteButton = new QAction(style()->standardIcon(QStyle::SP_TrashIcon),QString(tr("Delete")), this);
pDeleteButton->setSoftKeyRole(QAction::NoSoftKey);
addAction(pDeleteButton);

I put this code in the mainwindow.cpp constructor.

Thank you for your help!

+3
source share
1 answer

, QAction . , , , setMenu(). - ? , , , .

0

All Articles