Hmm, I don't see anything wrong with that..
Have you tried to change the shortcut context for that action? Try setting it to Qt::ApplicationShortcut.
Hmm, I don't see anything wrong with that..
Have you tried to change the shortcut context for that action? Try setting it to Qt::ApplicationShortcut.
J-P Nurmi
hi jpn,
i tried what u told, but still no use. FYI i am also using some delegates in the table. can it cause some problems ?
Do what u r afraid to do, and the death of fear is sure.
Hmm, if you are using the actions context menu policy I'm not really sure what's the problem.
As the action is created somewhere in the constructor or so, that it exists during the lifetime of the widget, the action should be triggered as well.
Maybe the shortcut event goes to a wrong widget or something.
Anyway, how about this way, does it work?
Qt Code:
connect(copyShortcut, SIGNAL(activated()), copyAct, SLOT(trigger()));To copy to clipboard, switch view to plain text mode
J-P Nurmi
Still not working![]()
Do what u r afraid to do, and the death of fear is sure.
Hi ankur,
Did your concept worked? Could you please let me know some coding part regarding the copying into clipboard and pasting back from clipboard. Even my requirement is same. It would be great if yo can share your dll/code.
Thanks in advance,
Nikhil
Bookmarks