Set Y property to a Drawer (MenuDrawer). (Bug?)



  • Hi everyone,
    I found in this link the following info:

    "Drawer can be configured to cover only part of its window edge. The following example illustrates how Drawer can be positioned to appear below a window header:

    import QtQuick 2.7
    import QtQuick.Controls 2.0
    
    ApplicationWindow {
        id: window
        visible: true
    
        header: ToolBar { }
    
        Drawer {
            y: header.height
            width: window.width * 0.6
            height: window.height - header.height
        }
    }
    
    

    Qt Doc Link Here!

    But It seems is not working. Could it be a Bug? Is there any other way to get that?

    Thank you very much.



  • Hi! The docs you're refering to belong to the Qt 5.7.1 development branch. The feature is not available in 5.7.0, see latest released docs.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.