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

ITEM COULD NOT BE CREATED

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
41 Posts 23 Posters 10.0k 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.
  • N Offline
    N Offline
    nasir60
    wrote on 28 Feb 2021, 13:54 last edited by nasir60
    #1

    I'm having trouble opening a new project,
    a message appears like this:
    item cannot be created

    Screenshot qq.png
    Screenshot (40).png

    L 1 Reply Last reply 27 Jun 2021, 20:16
    1
    • N Offline
      N Offline
      nagaraj_4896
      wrote on 15 Apr 2021, 13:16 last edited by
      #2

      I am also facing this ,Did you solve this error

      1 Reply Last reply
      0
      • N nasir60
        28 Feb 2021, 13:54

        I'm having trouble opening a new project,
        a message appears like this:
        item cannot be created

        Screenshot qq.png
        Screenshot (40).png

        L Offline
        L Offline
        lalemola
        wrote on 27 Jun 2021, 20:16 last edited by
        #3

        @nasir60 It's been a while since you posted this, but I am wondering if you found a solution.

        M 1 Reply Last reply 27 Jun 2021, 21:04
        0
        • L lalemola
          27 Jun 2021, 20:16

          @nasir60 It's been a while since you posted this, but I am wondering if you found a solution.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 27 Jun 2021, 21:04 last edited by
          #4

          @lalemola
          If this with Qt6 ?

          L 1 Reply Last reply 1 Jul 2021, 18:58
          2
          • M mrjj
            27 Jun 2021, 21:04

            @lalemola
            If this with Qt6 ?

            L Offline
            L Offline
            lalemola
            wrote on 1 Jul 2021, 18:58 last edited by
            #5

            @mrjj Sorry for the delay; using creator 4.15.1, reinstalled just today and the issue still exists.

            M 1 Reply Last reply 1 Jul 2021, 19:14
            0
            • L lalemola
              1 Jul 2021, 18:58

              @mrjj Sorry for the delay; using creator 4.15.1, reinstalled just today and the issue still exists.

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 1 Jul 2021, 19:14 last edited by
              #6

              @lalemola
              Hi
              so you downgrade the Qt version from 6.0 to 5.15 ?
              Or still using Qt6 ?

              The Creator version is not so important as It can use the newest and older Qt versions.
              (also at same time)

              Im wondering if this is something with Qt6.

              L 1 Reply Last reply 1 Jul 2021, 21:05
              0
              • M mrjj
                1 Jul 2021, 19:14

                @lalemola
                Hi
                so you downgrade the Qt version from 6.0 to 5.15 ?
                Or still using Qt6 ?

                The Creator version is not so important as It can use the newest and older Qt versions.
                (also at same time)

                Im wondering if this is something with Qt6.

                L Offline
                L Offline
                lalemola
                wrote on 1 Jul 2021, 21:05 last edited by
                #7

                @mrjj Yes, tried 6.2 and 6.1.2. I will try to install a version prior to Qt 6..1.2 and give that a try; it seems like a small but very annoying bug.

                M 1 Reply Last reply 1 Jul 2021, 21:09
                0
                • L lalemola
                  1 Jul 2021, 21:05

                  @mrjj Yes, tried 6.2 and 6.1.2. I will try to install a version prior to Qt 6..1.2 and give that a try; it seems like a small but very annoying bug.

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 1 Jul 2021, 21:09 last edited by
                  #8

                  @lalemola
                  Ok. that would be good. if it works in 5.15.xxx then we know the reason.
                  else im not sure what it could be as not seen that one before.

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tukangketik
                    wrote on 30 Aug 2021, 01:18 last edited by
                    #9

                    is there any solution for this issue ? even a clue where is the wrong part ?
                    I just installed qt 6.0.4 and XCode on macOS Big Sur and facing this issue.
                    i also installed latest qt 5.15 and no error on creating Window item.

                    1 Reply Last reply
                    1
                    • T Offline
                      T Offline
                      Tom4nt
                      wrote on 31 Aug 2021, 19:14 last edited by
                      #10

                      I am facing this issue as well, but in my case, it does not show "Go to error" in the designer, just a Window with 0 width and height, I suppose. Text editor works as expected.

                      Designer

                      Using Qt 6.1.2 and Qt Creator 5.0.0 on Windows 10.

                      Z K 2 Replies Last reply 2 Sept 2021, 06:25
                      1
                      • T Tom4nt
                        31 Aug 2021, 19:14

                        I am facing this issue as well, but in my case, it does not show "Go to error" in the designer, just a Window with 0 width and height, I suppose. Text editor works as expected.

                        Designer

                        Using Qt 6.1.2 and Qt Creator 5.0.0 on Windows 10.

                        Z Offline
                        Z Offline
                        Zahid
                        wrote on 2 Sept 2021, 06:25 last edited by
                        #11

                        @Tom4nt Have You found any solutions? Facing the same issue.

                        1 Reply Last reply
                        0
                        • T Tom4nt
                          31 Aug 2021, 19:14

                          I am facing this issue as well, but in my case, it does not show "Go to error" in the designer, just a Window with 0 width and height, I suppose. Text editor works as expected.

                          Designer

                          Using Qt 6.1.2 and Qt Creator 5.0.0 on Windows 10.

                          K Offline
                          K Offline
                          KroMignon
                          wrote on 2 Sept 2021, 06:52 last edited by
                          #12

                          @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")
                          }
                          

                          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                          Z T 2 Replies Last reply 2 Sept 2021, 15:07
                          0
                          • K KroMignon
                            2 Sept 2021, 06:52

                            @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")
                            }
                            
                            Z Offline
                            Z Offline
                            Zahid
                            wrote on 2 Sept 2021, 15:07 last edited by
                            #13

                            @KroMignon I am using Qt Creator 5.00! Still facing the same issue as @Tom4nt 4276713b-f528-438b-8987-7ddd07ebfe59-image.png

                            K 1 Reply Last reply 2 Sept 2021, 15:09
                            0
                            • Z Zahid
                              2 Sept 2021, 15:07

                              @KroMignon I am using Qt Creator 5.00! Still facing the same issue as @Tom4nt 4276713b-f528-438b-8987-7ddd07ebfe59-image.png

                              K Offline
                              K Offline
                              KroMignon
                              wrote on 2 Sept 2021, 15:09 last edited by
                              #14

                              @Zahid said in ITEM COULD NOT BE CREATED:

                              I am using Qt Creator 5.00!

                              Qt Creator is an IDE, it's version not relevant. What matter is the Qt Kit you are using.

                              It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                              Z 1 Reply Last reply 2 Sept 2021, 15:19
                              1
                              • K KroMignon
                                2 Sept 2021, 15:09

                                @Zahid said in ITEM COULD NOT BE CREATED:

                                I am using Qt Creator 5.00!

                                Qt Creator is an IDE, it's version not relevant. What matter is the Qt Kit you are using.

                                Z Offline
                                Z Offline
                                Zahid
                                wrote on 2 Sept 2021, 15:19 last edited by
                                #15

                                @KroMignon Qt version 6.12. How can I solve this? Should I downgrade my Qt version?

                                1 Reply Last reply
                                0
                                • K KroMignon
                                  2 Sept 2021, 06:52

                                  @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")
                                  }
                                  
                                  T Offline
                                  T Offline
                                  Tom4nt
                                  wrote on 4 Sept 2021, 20:25 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 5 Sept 2021, 12:02 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 7 Sept 2021, 09:49
                                    0
                                    • A arewethereyet
                                      5 Sept 2021, 12:02

                                      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 7 Sept 2021, 09:49 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 10 Sept 2021, 17:32 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 14 Sept 2021, 00:16 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

                                          • Login

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