Hmm i posted a reply a day or two ago I thought but maybe I forgot to hit submit. I'm still having issues with this. Here is how I defined my action in my MainWindow.cpp's createActions() initialization function.
deleteAction
= new QAction(/*icon,*/ tr
("&Delete"),
this);
deleteAction->setShortcut( tr("Del") );
connect(deleteAction, SIGNAL(triggered()), this, SLOT(deleteItem()));
deleteAction = new QAction(/*icon,*/ tr("&Delete"), this);
deleteAction->setShortcut( tr("Del") );
connect(deleteAction, SIGNAL(triggered()), this, SLOT(deleteItem()));
To copy to clipboard, switch view to plain text mode
Its not specific to the delete key thought. The problem is, even though I am editing the text, the shortcut actions override the text entry. So i tested this by changing the shortcut key to "a" and it prevents me from typing the letter a.
So it looks like i need to disable actions in order to make it work interactively with my text edit item...
Bookmarks