I am completely new to Qt.
How to determine Cmd + numeric key sequence on Mac in code?
For windows i have
QKeySequence(QString("Ctrl+") + QString::number(number));
where number is, say, 2
What should be the same for the cmd MAC key?
And is it possible for Qt to be somehow defined if we are working on a Mac or Windows (so that I can create a sequence of keys if necessary)?
source share