QKeySequence::Cancel isn't available in older versions of Qt
Though http://doc.qt.io/qt-5/qkeysequence.html#StandardKey-enum doesn't say so, it only says "This enum was introduced or modified in Qt 4.2."