PDA

View Full Version : hot to disable right click on form input controls



safknw
30th August 2006, 11:23
I want to right click menu from line edit and date time edit Control. How I can do this.

Thanks in advance.

jacek
30th August 2006, 11:36
But do you want to disable such menu or create one?

mcosta
30th August 2006, 12:00
I want to right click menu from line edit and date time edit Control. How I can do this.

Thanks in advance.

Try with



object->setContextMenuPolicy ( Qt::NoContextMenu);

safknw
31st August 2006, 11:45
Try with



object->setContextMenuPolicy ( Qt::NoContextMenu);

This is not working on Qt3.3.4 (suse 9.2)
Any other way to disable Context Menu.

jacek
31st August 2006, 12:11
This is not working on Qt3.3.4 (suse 9.2)
Next time, please, add information about the version in the first post, so you won't waste others time.


Any other way to disable Context Menu.
You can try to install an event filter that consumes QContextMenuEvents.