
Originally Posted by
jpn
Did you remember to allocate a new signal mapper object as well so that viewPanXMapper is not a null/dangling pointer?
No I didn't remember
!!!
Thank you .. it works now !
p.s for maximum compatibility with the older code I changed things so that the QShortcut::activated() is connected to the QAction::trigger() and left the mapper set
up as before.
connect(sLeft,SIGNAL(activated()),viewPan_LeftAction, SLOT(trigger()));
QShortcut *sLeft = new QShortcut(QKeySequence(tr("Left")), this);
connect(sLeft,SIGNAL(activated()),viewPan_LeftAction, SLOT(trigger()));
To copy to clipboard, switch view to plain text mode
Bookmarks