[Qt-interest] QShortcut help

Brad Hards bradh at frogmouth.net
Sun Dec 19 06:26:43 CET 2010


On Sunday, December 19, 2010 03:45:00 pm Soumen Banerjee wrote:
> shortcut_new = new QShortcut(this);
> shortcut_new->setKey(QKeySequence("Ctrl + N"));
Does it work if you use:
shortcut_new->setKey(QKeySequence(Qt::CTRL + Qt::Key_N));
or just
shortcut_new->setKey(Qt::CTRL + Qt::Key_N);

Brad



More information about the Qt-interest-old mailing list