Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24232

Invalid property name "anchors". (M16) on Layouts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • None
    • Qt Creator 4.12.2, Qt Creator 4.12.3, Qt Creator 4.14.0-rc1
    • Quick / QML Support
    • None
    • Linux/X11

      This started happening after migrating from Qt 5.13.1 to Qt 5.15.0

      ColumnLayout
      {
          id: layout
      
          anchors.top: parent.top
          anchors.left: parent.left
          anchors.right: parent.right
      }

      also happens sometimes on width too.

      It seems that in Qt 5.15.0 Layouts inherit anchors properties from Item. Maybe QtCreator cannot find inherited properties for Layouts components.

      Also tried fixing by updating from

      import QtQuick.Layouts 1.12 to 1.15

      This doesn't affect the building process. It only shows up in the editor.

        1. image-2020-09-28-17-03-33-317.png
          15 kB
          Mark Jan van Kampen
        2. InitApp.qml
          0.5 kB
          Brett Holcomb
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            fawzi Fawzi Mohamed
            victor.corchez Victor Corchez
            Votes:
            8 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes