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. [Solved]Ask the Flickable don't hide the toolBar
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 951 Views
  • 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 Offline
    S Offline
    stereomatching
    wrote on last edited by
    #1

    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
    0
    • J Offline
      J Offline
      Jens
      wrote on last edited by
      #2

      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
      0
      • S Offline
        S Offline
        stereomatching
        wrote on last edited by
        #3

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

        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