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

QML Flow: Cannot specify anchors for items inside Flow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.0.0 RC 2
    • None
    • GCC 4.7.2
      Qt 5.0.0 RC 2
      Qt Creator 2.6.1

    Description

      When adding anchors.fill: parent inside a flow item, QML debug responds with warnings: "QML Flow: Cannot specify anchors for items inside Flow. Flow will not function".

      I have tried the same function in Quick Qt 1.1 (Qt 4.8.3) and it works fine.

      See example below:

      Rectangle {
        x: 0
        y: 0
        width: 800
        height: 24
        Flow {
           Rectangle {
              id: rec1
              width: 32
              height: 24
           }
           Rectangle {
              id: rec2
              width: 32
              height: 24
           }
           Rectangle {
              id: rec3
              width: 32
             height: 24
           }
           Rectangle {
              id: rec4
              width: 32
              height: 24
           }
      
           MouseArea {
              id: mouseArea
              anchors.fill: parent
              onClicked: console.log("Clicked!");
           }
        }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martinj Martin Jones
            devilfish_mm Masrur Mahmood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes