[Solved]Ask the Flickable don't hide the toolBar



  • How could I ask the Flickable don't hide the toolBar?

    @
    import QtQuick 2.1
    import QtQuick.Controls 1.0
    import QtQuick.Dialogs 1.0
    import QtQuick.Layouts 1.0

    ApplicationWindow{
    id: root

    title: "Color Correction"
    
    color: syspal.window
    width: 1450
    height: 750
    minimumHeight: 750
    minimumWidth: 1400
    
    SystemPalette {id: syspal}
    
    toolBar: ToolBar{
        z: 1
    }
    
    Flickable{
        anchors.fill: parent
        contentHeight: image.height
        contentWidth: image.width
        Image{
            id: image
    
            source: "file:///Users/yyyy/Downloads/1359170070532.jpg"
        }
    }
    

    }

    @



  • You can set clip:true on the Flickable to prevent it from painting outside of its boundaries. We have actually changed the implicit z-ordering of the ToolBar in Qt 5.1.1 though.



  • Thanks, I haven't noticed I could use clip to achieve it


Log in to reply
 

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