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. Drawer does not slide out when using QQuickWidget?
Forum Updated to NodeBB v4.3 + New Features

Drawer does not slide out when using QQuickWidget?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 149 Views 1 Watching
  • 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.
  • P Offline
    P Offline
    patrickkidd
    wrote on last edited by
    #1

    It seems that it is not possible to pull out a Drawer from the edge of a QQuickWidget. The Drawer will slide out when visible is set to true, but not when using the mouse. Maybe QQuickWidget doesn't set up Overlay properly?

    import QtQuick 2.10
    import QtQuick.Controls 2.3
    
    
    Item {
        id: root
    
        Drawer {
            id: drawer
            width: root.width * .66
    	height: root.height
    	dragMargin: 150
    	edge: Qt.RightEdge
        }
    
        Rectangle {
            color: '#aa0000ff'; anchors.fill: parent
            onHeightChanged: print('***', width, height)
        }
    
    }
    

    Thanks!

    https://alaskafamilysystems.com/

    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