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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • 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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes