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

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.3.0
    • Fix Version/s: Qt Creator 4.4.0
    • Component/s: Quick / QML Support
    • Labels:
      None
    • Environment:

      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
        For Gerrit Dashboard: QTCREATORBUG-18321
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            mabenell Marco Benelli
            Reporter:
            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