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

QtCreator seems to ignore the "qmltypes" file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P1: Critical P1: Critical
    • None
    • Qt Creator 2.6.0-rc
    • Quick / QML Support
    • None
    • Linux (ArchLinux x64 fully updated with Qt 4.8.3)

      Hi,

      I'm using QtCreator 2.5.84 (rc for 2.6).
      I'm trying to let QtCreator highlight and complete the plasma qml components.

      This is what i did:
      In the qmldir for the plasma components (core and components) i added:
      typeinfo plugins.qmltypes

      Then i generated a plugins.qmltypes in the same folder where the
      qmldir is also placed using the command:
      qmlplugindump org.kde.plasma.core 0.1 /usr/lib/kde4/imports >
      /usr/lib/kde4/imports/org/kde/plasma/core/plugins.qmltypes

      And i did the same for the org.kde.plasma.components package.
      Obviously in it;s own folder with also the qmldir file edited.

      However, QtCreater keeps giving me "unknown component (M300)" even
      though i can run it perfectly fine.

      I'm using a qmlproject file and added /usr/lib/kde4/imports to the
      "importPaths" variable.

      I can't seem to figure out what i'm doing wrong..

      In QtCreator 2.5.2 i'm getting slightly different results. When i hover the import lines it does tell "Library at path <long path> Read typeinfo files successfully" however, the actual elements from those imports are still underlined with red and still gives "unknown component (M300)". As if it ignored the qmltypes files.

      Cheers,
      Mark

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

            kkohne Kai Köhne
            markg85 Mark
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes