This is not OS proof. I had to change to QKeySequence(Qt::META + Qt::Key_Space) on my mac to make it work as planned. Probably an ifdef on Q_OS would be needed here.