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

Move component into seperate File - if file imported: foo is not a type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 6.0.2
    • Quick Designer
    • None
    • Windows

    Description

      Anscheinend gelöst - zumindest für Qt 5.15

      lege ich exakt die selben main.qml und MyButton.qml für ein Projekt unter Qt 6.2 zugrunde, dann tritt der Fehler auf. "MyButton is not a type" — Das kann es doch nicht sein - oder?

      Es sieht danach aus, daß eine Durchmischung bzw. Gleichzeitigkeit von Dateien im Ressourcen-Directory und QML-Directory zum Chaos geführt haben. So läufts... zumindest in diesem Fall mit nur Ressourcen-Directory

       

      Bin nicht in der Lage MyButton.qml so wie in der Dokumentation beschrieben zu importieren

      Dies ist der Screenshot zum Problem.

      also z.B.:

      MyButton.qml

      main.qml

      resultuiert in dem Fehler "MyButton is not a type"

       

      Attachments

        1. main.cpp
          0.5 kB
        2. main.qml
          0.3 kB
        3. MyButton.qml
          0.2 kB
        4. MyButton is not a type.PNG
          MyButton is not a type.PNG
          135 kB
        5. So läufts.PNG
          So läufts.PNG
          104 kB
        6. test_003.pro
          0.5 kB
        7. test_003.pro.user
          19 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thohartm Thomas Hartmann
            qtbeginner2022 Klaus Wolter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes