Another way might be using childrenRect.width property.
On Sun, Aug 16, 2015 at 6:22 PM, Igor Mironchik <[email protected]>
wrote:
> Hi,
>
> On 16.08.2015 17:27, Dmitry Volosnykh wrote:
>
> Did you try to bind height to contentHeight?
>
>
> Nice idea. It works but I receive next warning:
>
> QML ListView: Binding loop detected for property "width"
>
> It from here:
>
> ListView {
> anchors.centerIn: parent
> orientation: ListView.Horizontal
> model: sampleModel
> delegate: delegateItem
> width: contentWidth
> }
>
>
> On Sun, Aug 16, 2015 at 5:23 PM, Igor Mironchik <[email protected]>
> wrote:
>
>> Hi guys,
>>
>> How can I automatically change width of the QML ListView to fit all
>> content?
>>
>> --
>> Best Regards,
>> Igor Mironchik.
>>
>> _______________________________________________
>> Interest mailing list
>> [email protected]
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>
>
> --
> Best Regards,
> Igor Mironchik.
>
>
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest