Okay, so I changed the lines to this:
aButton->setShortcut(Qt::Key_A);
// QObject::connect(aShortCut, SIGNAL(activated()), aButton, SLOT(animateClick()));
QPushButton *aButton=new QPushButton("&aButton", &w);
aButton->setShortcut(Qt::Key_A);
// QObject::connect(aShortCut, SIGNAL(activated()), aButton, SLOT(animateClick()));
To copy to clipboard, switch view to plain text mode
(I commented out that last line....I think I was supposed to do that now that I'm using the aButton->setShortcut. Still issue though. It compiles and runs, but the aButton isn't clicked when I press the letter a on my keyboard.
Any other ideas?
Bookmarks