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

Qt Quick Controls 2 Gallery Example gives error: "icon" does not have members (M17)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 4.5.0
    • Quick / QML Support
    • None
    • Qt 5.10

      Qt Creator 4.5.0

      Win10

      msvc2017 64bit compiler
    • 9bcc7df9ee8860cb469c1f6b701681e4eade9305

    Description

      When running the Qt Quick Controls 2 Gallery Example, line 92 and line 114 of gallery.qml give error: "icon" does not have members (M17), and forbids me from using design mode with a dialog saying:"Cannot open this QML document because of an error in the QML file" etc.

      But the example application compiles and works fine, seems it's just Qt Creator's problem.

      I searched internet and found a relative post:

      https://forum.qt.io/topic/87118/syntax-to-assign-multiple-icon-properties

      The OP said using "group notation" instead of "dot notation" and there was no error anymore, but it didn't work for me. I have another simple application using "group notation" but still get the error.

      Attachments

        Issue Links

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

          Activity

            People

              mabenell Marco Benelli
              epitapher Xuan Sun
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes