Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-110323

flow in scrollview, buggy parent: id must be specify to set size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2.3
    • None
    • Linux/X11

    Description

      Scenario: I want to set the size of my flow according to its parent size, a Scollview. I tried to set it using "width: parent.width and height: parent.height".

      Results: It doesn't work,  Flow elements stay in a column whether they could fit in a line.

      Fix: I need to use the id to get an expected behavior:  "width: myscrollwiew.width and height: myscrollwiew.height"

      Anchor to either parent or myscrollwiew doesn't work either

       

      I attached two qml files:

      -One working (size set with id) 

      -Another not working (size set according to parent)

      Attachments

        1. doesntWork.qml
          0.6 kB
          Nicolas Vengeon
        2. works.qml
          9 kB
          Nicolas Vengeon
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nvengeon Nicolas Vengeon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes