Hi.

On 16.08.2015 18:26, Dmitry Volosnykh wrote:
Another way might be using childrenRect.width property.

Great. Works. Thank you.

On Sun, Aug 16, 2015 at 6:22 PM, Igor Mironchik <igor.mironc...@gmail.com <mailto:igor.mironc...@gmail.com>> 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
    <igor.mironc...@gmail.com <mailto:igor.mironc...@gmail.com>> wrote:

        Hi guys,

        How can I automatically change width of the QML ListView to
        fit all content?

        --
        Best Regards,
        Igor Mironchik.

        _______________________________________________
        Interest mailing list
        Interest@qt-project.org <mailto:Interest@qt-project.org>
        http://lists.qt-project.org/mailman/listinfo/interest



-- Best Regards,
    Igor Mironchik.



--
Best Regards,
Igor Mironchik.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to