eulers_child
eulers_child

Reputation: 89

How to clip children in qml?

I have webView element that display google maps page. I need to show only map, without search input and other content. I have no idea except something like this:

Rectangle {
    x: 0
    y: 51
    height: 549
    //something like android clipChildren property

    WebView {
        id: mapView
        x:0
        y: -51
        width: 800
        height: 600
        url: ""
        onUrlChanged: {
            mapView.reload()
        }
    }
}

but I don't know property that can do it.

Upvotes: 0

Views: 342

Answers (1)

TheBootroo
TheBootroo

Reputation: 7518

Maybe use the clip: true; property which is present on every item in QtQuick ?

Upvotes: 2

Related Questions