Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ITEM COULD NOT BE CREATED
QtWS25 Last Chance

ITEM COULD NOT BE CREATED

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
41 Posts 23 Posters 9.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • KroMignonK KroMignon

    @nasir60 @nagaraj_4896 @lalemola @tukangketik @Tom4nt I never used Qt 6, but AFAIK in Qt 6 you do not have to specify the import version.

    So if you QML looks like this:

    import QtQuick 2.15
    import QtQuick.Window 2.15
    
    Window {
        width: 640
        height: 480
        visible: true
        title: qsTr("Hello World")
    }
    

    Then remove the version information and I suppose it should than work as expected.

    import QtQuick
    import QtQuick.Window
    
    Window {
        width: 640
        height: 480
        visible: true
        title: qsTr("Hello World")
    }
    
    Tom4ntT Offline
    Tom4ntT Offline
    Tom4nt
    wrote on last edited by
    #16

    @KroMignon Sorry for the late reply. I thought I would receive an email.
    The project I created already came with the imports like this:

    import QtQuick
    import QtQuick.Window
    

    I tried adding the versions though, but it didn't work.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arewethereyet
      wrote on last edited by
      #17

      I am facing the same issue on both my PC and Mac when using the QtCreator 5.0.0 and Qt 6.1 or 6.2 beta kits with new/old QtQuick Projects. The issue is not present when I'm working with Qt 5.15.2. Adding or removing version numbers does not have an effect on the issue. My PC is i9-10850K and GTX970 running Windows 10, and my Mac is Macbook Air M1 base model. Everything else works, including build, running on real devices / simulators, etc.

      A 1 Reply Last reply
      0
      • A arewethereyet

        I am facing the same issue on both my PC and Mac when using the QtCreator 5.0.0 and Qt 6.1 or 6.2 beta kits with new/old QtQuick Projects. The issue is not present when I'm working with Qt 5.15.2. Adding or removing version numbers does not have an effect on the issue. My PC is i9-10850K and GTX970 running Windows 10, and my Mac is Macbook Air M1 base model. Everything else works, including build, running on real devices / simulators, etc.

        A Offline
        A Offline
        arewethereyet
        wrote on last edited by
        #18

        @arewethereyet said in ITEM COULD NOT BE CREATED:

        I am facing the same issue on both my PC and Mac when using the QtCreator 5.0.0 and Qt 6.1 or 6.2 beta kits with new/old QtQuick Projects. The issue is not present when I'm working with Qt 5.15.2. Adding or removing version numbers does not have an effect on the issue. My PC is i9-10850K and GTX970 running Windows 10, and my Mac is Macbook Air M1 base model. Everything else works, including build, running on real devices / simulators, etc.

        I tested Qt 6.1.3 GCC kit on Zorin OS (based on Ubuntu 20.04.3 LTS) and the problem is present there as well. Is there any solution to this problem or what could be causing it? There's no Felgo hot reload for Qt 6 yet to my understanding, so I cannot use that to bypass design view issues when developing front-end either...

        1 Reply Last reply
        0
        • J Offline
          J Offline
          John Cordell
          wrote on last edited by
          #19

          I'm also experiencing this issue using QtCreator 5.0.0 and QT version 6.1.3 on macOS Big Sur (11.5.2). When starting a new project with the base qml window code, I can run the project and the window will appear. Switching to the Design view, I am unable to see the form in the form editor, and in the Navigator pane, hovering over the "Window" component displays the message: "item could not be created."

          1 Reply Last reply
          2
          • C Offline
            C Offline
            c0ntrarian
            wrote on last edited by
            #20

            Popping in to say that I am experiencing this issue when I create a new project in QT Creator with the Qt 6.0 minimal version selection.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sbentzien
              wrote on last edited by
              #21

              Having the same issue with Qt Creator 5.0.1, Qt 6.1.3 MinGW 64-bit on Windows 10 64bit.
              All items in the Navigator panel have a warning sign next to them, are underlined in red and their tooltip says 'Item could not be created'.
              Running the application works like a charm, but the preview in the Form Editor doesn't work.

              L 1 Reply Last reply
              0
              • S sbentzien

                Having the same issue with Qt Creator 5.0.1, Qt 6.1.3 MinGW 64-bit on Windows 10 64bit.
                All items in the Navigator panel have a warning sign next to them, are underlined in red and their tooltip says 'Item could not be created'.
                Running the application works like a charm, but the preview in the Form Editor doesn't work.

                L Offline
                L Offline
                lucas.gmiranda
                wrote on last edited by lucas.gmiranda
                #22

                @sbentzien same configuration and the same issue here

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  John Cordell
                  wrote on last edited by
                  #23

                  Is anyone aware of how to escalate this with the QTCreator Dev/Support team? This seems like a painfully long time to have an issue like this, which is a software block, and not have been follow-up on by someone.

                  jsulmJ 1 Reply Last reply
                  1
                  • J John Cordell

                    Is anyone aware of how to escalate this with the QTCreator Dev/Support team? This seems like a painfully long time to have an issue like this, which is a software block, and not have been follow-up on by someone.

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #24

                    @John-Cordell Was this reported as bug in Qt bug tracker?

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      The-EDev
                      wrote on last edited by The-EDev
                      #25

                      I'm facing the same issue, happens on QTCreator 4 and 5, only happens when using QT 6.1.3, QT 5.15.2 works just fine. Removing version number from imports did not help.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        Martin-Barrett
                        wrote on last edited by
                        #26

                        Me too, 5.15 fine, 6.1.3 gets red squiggles under "window" in design view.

                        1 Reply Last reply
                        0
                        • N Offline
                          N Offline
                          Nathan Miguel
                          wrote on last edited by Nathan Miguel
                          #27

                          This work for me! QT 6.2.0

                          1. Go to Tools > Options > QT Quick

                          7c92cde5-6594-42d7-acba-f3e136da75f3-image.png

                          70a53e49-d6a7-45db-bd85-b50266c338b5-image.png

                          1. Inside QT QUICK DESIGNER TAB check the second options and copy/paste same path of first in secont

                          Screenshot 2021-09-30 201144.png

                          1. Restart your QT and wait for build

                          OBS: Autocomplete dont work when import something like quick controls, so import without version or put 6.0

                          76fc5af4-8133-4966-b7cc-c1c1d5b22515-image.png

                          4f2cd703-0ef8-4e44-9c00-ce49c3784ef8-image.png

                          Enjoy!

                          A C T D Y 6 Replies Last reply
                          5
                          • N Nathan Miguel

                            This work for me! QT 6.2.0

                            1. Go to Tools > Options > QT Quick

                            7c92cde5-6594-42d7-acba-f3e136da75f3-image.png

                            70a53e49-d6a7-45db-bd85-b50266c338b5-image.png

                            1. Inside QT QUICK DESIGNER TAB check the second options and copy/paste same path of first in secont

                            Screenshot 2021-09-30 201144.png

                            1. Restart your QT and wait for build

                            OBS: Autocomplete dont work when import something like quick controls, so import without version or put 6.0

                            76fc5af4-8133-4966-b7cc-c1c1d5b22515-image.png

                            4f2cd703-0ef8-4e44-9c00-ce49c3784ef8-image.png

                            Enjoy!

                            A Offline
                            A Offline
                            arewethereyet
                            wrote on last edited by
                            #28

                            @Nathan-Miguel I had tried this before with the 6.2 beta, and it didn't work, but now with "Top level build path" of the QML emulation layer set to "<Path To Qt>Qt/6.2.0/macOS/bin" worked for me, finally.

                            1 Reply Last reply
                            0
                            • N Nathan Miguel

                              This work for me! QT 6.2.0

                              1. Go to Tools > Options > QT Quick

                              7c92cde5-6594-42d7-acba-f3e136da75f3-image.png

                              70a53e49-d6a7-45db-bd85-b50266c338b5-image.png

                              1. Inside QT QUICK DESIGNER TAB check the second options and copy/paste same path of first in secont

                              Screenshot 2021-09-30 201144.png

                              1. Restart your QT and wait for build

                              OBS: Autocomplete dont work when import something like quick controls, so import without version or put 6.0

                              76fc5af4-8133-4966-b7cc-c1c1d5b22515-image.png

                              4f2cd703-0ef8-4e44-9c00-ce49c3784ef8-image.png

                              Enjoy!

                              C Offline
                              C Offline
                              c0ntrarian
                              wrote on last edited by
                              #29

                              @Nathan-Miguel Working on the new 6.2 LTS with Creator 5.0. You are a champion thank you so much for the help.

                              1 Reply Last reply
                              0
                              • N Nathan Miguel

                                This work for me! QT 6.2.0

                                1. Go to Tools > Options > QT Quick

                                7c92cde5-6594-42d7-acba-f3e136da75f3-image.png

                                70a53e49-d6a7-45db-bd85-b50266c338b5-image.png

                                1. Inside QT QUICK DESIGNER TAB check the second options and copy/paste same path of first in secont

                                Screenshot 2021-09-30 201144.png

                                1. Restart your QT and wait for build

                                OBS: Autocomplete dont work when import something like quick controls, so import without version or put 6.0

                                76fc5af4-8133-4966-b7cc-c1c1d5b22515-image.png

                                4f2cd703-0ef8-4e44-9c00-ce49c3784ef8-image.png

                                Enjoy!

                                T Offline
                                T Offline
                                Tahmis
                                wrote on last edited by Tahmis
                                #30

                                @Nathan-Miguel Unfortunately that didn't help me as that seems to work only for desktop projects :|

                                For Android Kits I'm getting this error when trying your solution:
                                c95517a9-ab13-4e7d-8d2c-8c5a5dc0d5da-image.png

                                N 1 Reply Last reply
                                0
                                • T Tahmis

                                  @Nathan-Miguel Unfortunately that didn't help me as that seems to work only for desktop projects :|

                                  For Android Kits I'm getting this error when trying your solution:
                                  c95517a9-ab13-4e7d-8d2c-8c5a5dc0d5da-image.png

                                  N Offline
                                  N Offline
                                  Nathan Miguel
                                  wrote on last edited by Nathan Miguel
                                  #31

                                  @Tahmis I think this should help

                                  ead2c535-8e92-4f8f-82c9-55658ee74895-image.png

                                  in steep 2 instead use this path try "<Path To Qt>/6.2.0/Kit android"

                                  7a581dbf-91b0-4d52-9c45-1ca1f7102794-image.png

                                  and try to see in MaintenanceTool if you don't have any pending updates and if you linked the android sdk in the QT options

                                  T 1 Reply Last reply
                                  0
                                  • N Nathan Miguel

                                    @Tahmis I think this should help

                                    ead2c535-8e92-4f8f-82c9-55658ee74895-image.png

                                    in steep 2 instead use this path try "<Path To Qt>/6.2.0/Kit android"

                                    7a581dbf-91b0-4d52-9c45-1ca1f7102794-image.png

                                    and try to see in MaintenanceTool if you don't have any pending updates and if you linked the android sdk in the QT options

                                    T Offline
                                    T Offline
                                    Tahmis
                                    wrote on last edited by
                                    #32

                                    @Nathan-Miguel No luck unfortunately.

                                    Tried this now as you suggested and still getting the same error of which I pasted a screenshot earlier:
                                    c2e5e109-ba1f-4c53-8eee-0858b80af02d-image.png

                                    My QT installation is totally fresh and everything is updated and android sdk is linked in the options. I believe your workaround doesn't work for mobile kits :|

                                    N 1 Reply Last reply
                                    0
                                    • T Tahmis

                                      @Nathan-Miguel No luck unfortunately.

                                      Tried this now as you suggested and still getting the same error of which I pasted a screenshot earlier:
                                      c2e5e109-ba1f-4c53-8eee-0858b80af02d-image.png

                                      My QT installation is totally fresh and everything is updated and android sdk is linked in the options. I believe your workaround doesn't work for mobile kits :|

                                      N Offline
                                      N Offline
                                      Nathan Miguel
                                      wrote on last edited by
                                      #33

                                      @Tahmis you forgot to put the kit into path

                                      C:\Qt\6.2.0\android_arm64_v8a

                                      T 1 Reply Last reply
                                      0
                                      • N Nathan Miguel

                                        @Tahmis you forgot to put the kit into path

                                        C:\Qt\6.2.0\android_arm64_v8a

                                        T Offline
                                        T Offline
                                        Tahmis
                                        wrote on last edited by
                                        #34

                                        @Nathan-Miguel I think I tried that also earlier but tried again without success..

                                        c4715cc4-6de0-49a3-aa50-baf7b8b98d65-image.png

                                        Thanks anyway!

                                        Maybe Windows 11 upgrade surprisingly fixes something and it starts to work :D

                                        N 1 Reply Last reply
                                        0
                                        • N Nathan Miguel

                                          This work for me! QT 6.2.0

                                          1. Go to Tools > Options > QT Quick

                                          7c92cde5-6594-42d7-acba-f3e136da75f3-image.png

                                          70a53e49-d6a7-45db-bd85-b50266c338b5-image.png

                                          1. Inside QT QUICK DESIGNER TAB check the second options and copy/paste same path of first in secont

                                          Screenshot 2021-09-30 201144.png

                                          1. Restart your QT and wait for build

                                          OBS: Autocomplete dont work when import something like quick controls, so import without version or put 6.0

                                          76fc5af4-8133-4966-b7cc-c1c1d5b22515-image.png

                                          4f2cd703-0ef8-4e44-9c00-ce49c3784ef8-image.png

                                          Enjoy!

                                          D Offline
                                          D Offline
                                          DanielObata
                                          wrote on last edited by
                                          #35

                                          @Nathan-Miguel thanks works for me!

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved