QMenu *const menu = new QMenu(parent);
QAction *const ungroup = new QAction(tr("Ungroup"), this);
+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
+ ungroup->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_U));
+#else
ungroup->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_U));
+#endif
connect(ungroup, SIGNAL(triggered()), this, SLOT(on_ungroup()));
menu->addAction(ungroup);