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

Warning: QML types file does not exist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.10
    • 6.7
    • QML: Compiler
    • None
    • Fedora 39, KDE Plasma

    Description

      When building this project: https://invent.kde.org/nicolasfella/qml-module-thing

      there are unexpected warnings in the build output:

      Warning: HorizontalHeaderView.qml: Warnings occurred while importing base modules: [import]
      
      ---
      
      Warning: QML types file does not exist: /home/nico/kde/build/qqc2-desktop-style/org/kde/qqc2desktopstyle/private/qqc2desktopstyleplugin.qmltypes [import]
      
      ---
      
      
      
      Warning: HorizontalHeaderView.qml:4:1: StylePrivate.StyleItem was not found. Did you add all import paths? [import]
      
      StylePrivate.StyleItem {
      
      ^^^^^^^^^^^^
      
      Info: Did you mean "StylePrivate"?
      
      StylePrivate.StyleItem {
      
      ^^^^^^^^^^^^
      
      Info: HorizontalHeaderView.qml:2:1: Unused import [unused-imports]
      
      import org.kde.qqc2desktopstyle.private as StylePrivate
      
      ^^^^^^
      

      The given qmltypes file does in fact exist and contains data for StyleItem, so StyleItem should be found.

      This seems to happen only when building with Ninja, using Makefiles there is no warnings

       

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            nicolasfella Nicolas Fella
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes