[Qt-qml] Adjusting Flickable contentHeight to variable children ListViews
Matti Mäki
matti.maki at iki.fi
Tue Oct 11 10:22:39 CEST 2011
Hi,
Flickable {
contentHeight: //..?
ListView {
visible: // always
contentHeight: // fixed
}
ListView {
visible: // always
contentHeight: // fixed
}
ListView {
visible: // sometimes
contentHeight: // variable
}
}
How should I define the Flickable contentHeight so it will adjust
correctly to the changing children? Binding to childrenRect.height does
not seem to do the job. The two upper ListView's are always visible and
have fixed heights but the third is shown only when user expands it, and
it might have any number of elements from 1 to 20 or something.
/matti
More information about the Qt-qml
mailing list