Remove actions options menu in Symbian
|IMPORTANT: The content of this page is outdated. Reason: The Symbian platform is no longer supported.|
If you have checked or updated this page and found the content to be suitable, please remove this notice.
Sometimes Actions option is added automatically to the Options menu of Qt applications for Symbian.
Using Qt Designer
This article describes how to remove the strange Actions option which keeps appearing on Qt application running on Symbian.
- Go to the Qt Designer (you can do this in the code as well)
- Select every Widget in your form
- In the properties pane find contextMenuPolicy and change it to NoContextMenu for every widget inside your form (could be a QWidget, QDialog or a QMainWindow).
- See the screenshot below
Another way to solve the issue is to set NoContextMenu to all widgets using the code below:
QWidgetList allWidgets = QApplication::allWidgets();
foreach(QWidget* widget, allWidgets)