i tried like the below and it did not worked. how to use the modifier inside keypressevent.
Qt Code:
switch (event->key()) { case (Qt::Key_1): if (event->modifiers()==Qt::ShiftModifier) qDebug()<<"shift and one"; break; } }To copy to clipboard, switch view to plain text mode
Bookmarks