[Qt-qml] Flickable height

Matthias Ettrich matthias.ettrich at nokia.com
Thu Sep 23 16:31:18 CEST 2010


I would have expected 450px.

 Matthias

On Thursday 23 September 2010 14:54:59 Bastian Thierry (Nokia-MS-Qt/Oslo) 
wrote:
> Hi,
> 
> I’m trying to help the QML Enablers project with getting gesture area to
>  work on top of Flickable . The first strange thing I encountered happens
>  with the following code:
> 
> import Qt 4.7
> import Qt.labs.gestures 2.0
> 
> Flickable {
>     width: 380; height: 600
>     contentHeight : 900
> 
>     Rectangle {
>            color: "red"
>         x: 0; y:0; width: parent.width; height: (parent.height/2)
>     }
> }
> 
> Here I would expect my rectangle to be 300px tall (height/2) but I get
>  450px (contentHeight/2). Is that a bug?
> 
> Thierry
> 




More information about the Qt-qml mailing list