Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Drawer does not slide out when using QQuickWidget?



  • 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!


Log in to reply