How to implement the "Edit" menu with "Undo", "Cut", "Paste" and "Copy"?
- by BastiBense
Greetings,
for one of my applications I'm trying to implement an "Edit" menu. This menu usually has the standard-entries Undo, Cut, Copy and Paste.
This menu is not there by default, and users seem to expect it especially on Mac OS X.
Is there a an easier way of implementing this, without doing so in every widget manually? Since most widgets have the copy/paste/undo mechanism already implemented via shortcuts, I'd like to provide a few simple menu actions that call them as well.
The actions should call whatever widget has the focus first, then they should pass the events upwards the object chain, I guess.
I'm using Qt 4.6 on Windows, Linux and Mac OS X.
Thanks!