Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128632

Incorrect qmllint warning about unresolved type

    XMLWordPrintable

Details

    • 8c2fa0330 (dev), 5080d0560 (6.8), 40b2c50dd (tqtc/lts-6.5)

    Description

      In the example below, we get a warning about unresolved type, even though all types are available in qml and working correctly:

      SampleDataStoreManagerSettingsSection {
          contentControl.contentItem: GridLayout {
              // ...
          }
      }
      
      component SampleDataStoreManagerSettingsSection: Column {
          property alias contentControl: sectionContentItem
      
          Control {
              id: sectionContentItem
              // ...
          }
      }
      } 
      

      Warnings:

      Warning: SettingsPage.qml:80:17: unknown grouped property scope contentControl. [unqualified]
                      contentControl.contentItem: GridLayout {
                      ^^^^^^^^^^^^^^
      Warning: SettingsPage.qml:80:17: 'contentControl' is used but it is not resolved [unresolved-type]
                      contentControl.contentItem: GridLayout {
                      ^^^^^^^^^^^^^^
      Warning: SettingsPage.qml:80:17: Type contentControl is used but it is not resolved [unresolved-type]
                      contentControl.contentItem: GridLayout {
                      ^^^^^^^^^^^^^^
      

      Attachments

        For Gerrit Dashboard: QTBUG-128632
        # Subject Branch Project Status CR V

        Activity

          People

            ulherman Ulf Hermann
            friendnick Mykola Vankovych
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes