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

QML Editor: Error underlining shows for boolean properties in certain circumstances (Regression from 2.1)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 2.2.0-beta
    • Quick / QML Support

    Description

      Steps to reproduce:

      • Create new QML file:

      import QtQuick 1.0

      Text { \n
      property string t \n
      enabled: t != "" \n
      visible: tt Unable to render embedded object: File (= "" // Error/Warning underlining will show up for operator ') not found.=', saying (type coercion, use === , etc) \n
      }

      Note that the error underlining shows up for tt, although tt is not known.

      This was noticed looking at a list delegate defining properties depending on its model's properties. In this case, it may cause confusion.

      Attachments

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

        Activity

          People

            con Eike Ziller
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes