Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    QML and Qt Quick
    2
    3
    802
    Loading More Posts
    • 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.
    • S
      stereomatching last edited by

      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"
          }
      }
      

      }

      @

      1 Reply Last reply Reply Quote 0
      • J
        Jens last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • S
          stereomatching last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post