How to implement the "Edit" menu with "Undo", "Cut", "Paste" and "Copy"?

Posted by BastiBense on Stack Overflow See other posts from Stack Overflow or by BastiBense
Published on 2010-01-12T07:47:18Z Indexed on 2010/06/02 20:04 UTC
Read the original article Hit count: 170

Filed under:
|
|
|

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!

© Stack Overflow or respective owner

Related posts about gui

Related posts about qt