Qt 6.11 is out! See what's new in the release
blog
full-screen item
-
Hello, I want it to double-click on the item, it will increase to the full screen. So far, I've implemented this by assigning the "visible" field to false for all other items. Please tell me how I can do it differently
void OverlayItem::mouseDoubleClickEvent(QMouseEvent *) { static int i; i++; if (i % 2 == 0) { i = 0; puBHZ->setProperty("visible", true); puVLM->setProperty("visible", true); otherSlot->setProperty("visible", true); this->setFocus(false); qw->showNormal(); if (puItem) { puItem->setParentItem(qobject_cast<QQuickItem *>(puBHZ)); puItem->setProperty("opacity", 1); } } else { puBHZ->setProperty("visible", false); puVLM->setProperty("visible", false); otherSlot->setProperty("visible", false); this->setFocus(true); qw->showFullScreen(); } //qDebug() << Q_FUNC_INFO << "2click"<< pubhz << puvlm << qis; }