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

ButtonGroup is marked as Unknown Component. (M300), but code runs fine

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.4.0
    • Qt Creator 4.3.0
    • Quick / QML Support
    • None

    Description

      Hello, 

      I ran in the bug as follows:

      • I created a new Qt Quick Controls 2 Application.
      • I added ButtonGroup { }
      • EXPECTED: ButtonGroup to be accepted and qtcreator providing code completion etc.
      • ACTUAL: it got marked red with in the tooltip saying: Unknown Component. (M300)
      • The following works as a work around
        import QtQuick.Templates 2.0 as T; T.ButtonGroup { }
      • Also Tools -> QML/JS -> Reset Code Model did not help.

       

       

      Attachments

        1. ButtonGroup.PNG
          ButtonGroup.PNG
          36 kB
        2. main.qml
          0.2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mabenell Marco Benelli
            escyll Jesper Huijgens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes