[Qt-qml] Flickable height

alexis.menard at nokia.com alexis.menard at nokia.com
Thu Sep 23 16:36:54 CEST 2010


Hello,

What means the contentHeight and the height properties?

Height - contentHeight is some kind of margins?

When reading the property binding i tend to agree with Thierry...

Is the height anyway bind to the contentHeight?

Thanks.

On 23. sep. 2010, at 11.31, ext Matthias Ettrich wrote:

> 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
>> 
> 
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml





More information about the Qt-qml mailing list