Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-212

plugin.qmltype for the inherited QML types seem to be generated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt for MCUs 2.5
    • QUL Team
    • None
    • All

    Description

      The issue: Qt Creator tells the inherited properties of the custom controls as invalid.

       

      The attached project(CoffeeMaker.zip) has custom controls defined in the module "CoffeeControls."

      In the file LanguageRadioGroup.qml uses one of them; CoffeeRadioButton.

      As you can see in the image above, the inherited properties from Qt Quick Templates, such as checked, text and onClicked are said to be invalid, although the program builds and runs without any issues.

      As it turned out, when I checked the plugin.qmltypes(This file is attached to this Jira ticket) resides in the path which is shown when you hover over "import CoffeeControls 1.0" in the file, it only has newly defined properties in CoffeeRadioButton.qml, where it's supposed to have the inherited ones from Qt Quick Templates as well. 

      The workaround is to import QtQuick.Templates 2.15 in LanguageRadioGroup.qml.

      Attachments

        1. CofeeMaker.zip
          8.85 MB
          Mikio Hirai
        2. image-2023-09-25-10-38-57-228.png
          140 kB
          Mikio Hirai
        3. image-2023-09-25-10-42-48-000.png
          94 kB
          Mikio Hirai
        4. plugins.qmltypes
          1 kB
          Mikio Hirai
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ylopes Yoann Lopes
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes