Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. full-screen item
Qt 6.11 is out! See what's new in the release blog

full-screen item

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 274 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Idodoqdo
    wrote on last edited by
    #1

    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;
    }
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved