Remove actions options menu in Symbian: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:HowTo]] | |||
'''English''' [[Remove_actions_options_menu_in_Symbian_Bulgarian|Български]] | |||
==The Problem== | = Remove actions option menu in Symbian = | ||
== The Problem == | |||
Sometimes '''Actions''' option is added automatically to the '''Options''' menu of Qt applications for Symbian. | Sometimes '''Actions''' option is added automatically to the '''Options''' menu of Qt applications for Symbian. | ||
==Solutions== | == Solutions == | ||
===Using Qt Designer=== | === Using Qt Designer === | ||
This article describes how to remove the strange '''Actions''' option which keeps appearing on Qt application running on Symbian. | This article describes how to remove the strange '''Actions''' option which keeps appearing on Qt application running on Symbian. | ||
Line 18: | Line 20: | ||
# See the screenshot below | # See the screenshot below | ||
[[Image:07z8J.png|pic]] | [[Image:http://i.imgur.com/07z8J.png|pic]] | ||
===Programatically=== | === Programatically === | ||
Another way to solve the issue is to set '''NoContextMenu''' to all widgets using the code below: | Another way to solve the issue is to set '''NoContextMenu''' to all widgets using the code below: | ||
= | <code><br />QWidgetList allWidgets = QApplication::allWidgets();<br />foreach(QWidget* widget, allWidgets)<br /> widget->setContextMenuPolicy(Qt::NoContextMenu); | ||
* |
Revision as of 11:27, 24 February 2015
English Български
The Problem
Sometimes Actions option is added automatically to the Options menu of Qt applications for Symbian.
Solutions
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
Programatically
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)
widget->setContextMenuPolicy(Qt::NoContextMenu);