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

QtCreator underscores assigning of composite properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 3.3.0
    • Quick / QML Support
    • None
    • Qt 5.4.0
      QtCreator 3.3.0
      Debian 7
      clang 3.0

    Description

      Suppose, we have own component, SomeComponent.qml

      Item {
          id: root
          property font ourFont
          Text {
              font: root.ourFont
          }
      }
      

      And component usage:

      SomeComponent {
          ourFont.pixelSize: 24 // QtCreator underscores this line with error: "ourFont" does not have members (M17)
      }
      

      But this code works without errors:

      SomeComponent {
          ourFont {
              pixelSize: 24 // not underscored
          }
      }
      

      Both of these examples do what is expected but int the first one red line is annoying.

      Attachments

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

        Activity

          People

            mabenell Marco Benelli
            folibis ruslan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes