Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Kits all grayed out when creating new Qt Quick project on 14.0.0
Qt 6.11 is out! See what's new in the release blog

Kits all grayed out when creating new Qt Quick project on 14.0.0

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
16 Posts 4 Posters 4.1k 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.
  • Z Offline
    Z Offline
    zayd
    wrote on last edited by
    #1

    As the title says, when I go to create a new project with Qt Quick, I can't select a kit because they're all grayed out.
    067c6351-db8e-4dc6-ba6b-86e06e4e88c4-image.png
    I'm on the latest system package on Arch Linux. Is there any setup I missed?

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Check the Kits for warnings and errors.
      Also, did you install QtQuick/QNL packages?

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

      Z 1 Reply Last reply
      0
      • cristian-adamC Online
        cristian-adamC Online
        cristian-adam
        wrote on last edited by
        #3

        Just make sure you have Qt, CMake and Ninja installed from the Qt SDK installer.

        1 Reply Last reply
        0
        • jsulmJ jsulm

          Check the Kits for warnings and errors.
          Also, did you install QtQuick/QNL packages?

          Z Offline
          Z Offline
          zayd
          wrote on last edited by
          #4

          @jsulm I have all the packages under the 'qt6' package group installed, I don't see anything other than that available for QtQuick or QML (I assume that's what you meant by "QNL", but I checked that as well)

          @cristian-adam I'm not seeing an option for a "Qt SDK installer", but I have all of those as system packages already.

          1 Reply Last reply
          0
          • cristian-adamC Online
            cristian-adamC Online
            cristian-adam
            wrote on last edited by
            #5

            You'll have to go to the Kits page and see if anything is marked with an exclamation mark.

            Z 1 Reply Last reply
            0
            • cristian-adamC cristian-adam

              You'll have to go to the Kits page and see if anything is marked with an exclamation mark.

              Z Offline
              Z Offline
              zayd
              wrote on last edited by
              #6

              @cristian-adam I went to the kits section in the settings menu, nothing anywhere in the Desktop kit had an exclamation point.

              1 Reply Last reply
              0
              • cristian-adamC Online
                cristian-adamC Online
                cristian-adam
                wrote on last edited by
                #7

                If I look at the source code I can see the following:

                bool Kit::isValid() const
                {
                    if (!d->m_id.isValid())
                        return false;
                
                    if (!d->m_hasValidityInfo)
                        validate();
                
                    return !d->m_hasError;
                }
                

                If the Kit has everything there, compilers, Qt versions, debugger. It might be that its Id is invalid.

                Please attach a screenshot of the Kits page.

                Lastly, you could try cloning the Desktop kit, so that you would get a valid ID...

                Z 1 Reply Last reply
                0
                • JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by JoeCFD
                  #8

                  I just upgraded Qt creator to 14 and am able to create a quick project with Qt 6.7 + 14 on Ubuntu 22.04. Only issue is that the default compiler in the kit is clang. I replaced it with g++. Everything is ok and the default window can be popped up.

                  1 Reply Last reply
                  0
                  • cristian-adamC cristian-adam

                    If I look at the source code I can see the following:

                    bool Kit::isValid() const
                    {
                        if (!d->m_id.isValid())
                            return false;
                    
                        if (!d->m_hasValidityInfo)
                            validate();
                    
                        return !d->m_hasError;
                    }
                    

                    If the Kit has everything there, compilers, Qt versions, debugger. It might be that its Id is invalid.

                    Please attach a screenshot of the Kits page.

                    Lastly, you could try cloning the Desktop kit, so that you would get a valid ID...

                    Z Offline
                    Z Offline
                    zayd
                    wrote on last edited by
                    #9

                    @cristian-adam Kits page: f88610e7-c048-4cdb-9671-bf2c52dc6a94-image.png

                    Cloning didn't fix it.

                    At this point, I'm might try my luck with Qt Widgets and see how that goes. The kits do show up as available when I try to make a project with it, not sure if that's worth noting or relevant to the issue with creating a project on Qt Quick.

                    1 Reply Last reply
                    0
                    • cristian-adamC Online
                      cristian-adamC Online
                      cristian-adam
                      wrote on last edited by
                      #10

                      I think the issue is using Qt 5.15.14. The Qt Quick wizard in Qt Creator needs Qt6 for Qt Quick.

                      You might also want to install ninja.

                      Z 1 Reply Last reply
                      0
                      • cristian-adamC cristian-adam

                        I think the issue is using Qt 5.15.14. The Qt Quick wizard in Qt Creator needs Qt6 for Qt Quick.

                        You might also want to install ninja.

                        Z Offline
                        Z Offline
                        zayd
                        wrote on last edited by
                        #11

                        @cristian-adam

                        I think the issue is using Qt 5.15.14. The Qt Quick wizard in Qt Creator needs Qt6 for Qt Quick.

                        I didn't notice that. I tried selecting Qt6, but it isn't there, 5.15.14 is the only option. I can 100% guarantee enough to make Qt software function is installed though, everything that looks like it would be needed shows up in pacman -Q and I'm typing this from a KDE Plasma 6 session. /usr/include/qt6 is also present, with headers in it.

                        You might also want to install ninja.

                        I already have it installed and have for a while, the installed version is 1.12.1.

                        cristian-adamC 1 Reply Last reply
                        0
                        • Z zayd

                          @cristian-adam

                          I think the issue is using Qt 5.15.14. The Qt Quick wizard in Qt Creator needs Qt6 for Qt Quick.

                          I didn't notice that. I tried selecting Qt6, but it isn't there, 5.15.14 is the only option. I can 100% guarantee enough to make Qt software function is installed though, everything that looks like it would be needed shows up in pacman -Q and I'm typing this from a KDE Plasma 6 session. /usr/include/qt6 is also present, with headers in it.

                          You might also want to install ninja.

                          I already have it installed and have for a while, the installed version is 1.12.1.

                          cristian-adamC Online
                          cristian-adamC Online
                          cristian-adam
                          wrote on last edited by
                          #12

                          @zayd said in Kits all grayed out when creating new Qt Quick project on 14.0.0:

                          I didn't notice that. I tried selecting Qt6, but it isn't there, 5.15.14 is the only option. I can 100% guarantee enough to make Qt software function is installed though, everything that looks like it would be needed shows up in pacman -Q and I'm typing this from a KDE Plasma 6 session. /usr/include/qt6 is also present, with headers in it.

                          Please attach a screenshot of your Kits > Qt Versions.

                          Qt Creator needs to have access to qmake, qmake6 or qtpaths in order to mark a Qt version as found.

                          You might need to add a manual Qt entry there.

                          @zayd said in Kits all grayed out when creating new Qt Quick project on 14.0.0:

                          I already have it installed and have for a while, the installed version is 1.12.1.

                          It should have picked Ninja as generator for CMake.

                          Z 1 Reply Last reply
                          0
                          • cristian-adamC cristian-adam

                            @zayd said in Kits all grayed out when creating new Qt Quick project on 14.0.0:

                            I didn't notice that. I tried selecting Qt6, but it isn't there, 5.15.14 is the only option. I can 100% guarantee enough to make Qt software function is installed though, everything that looks like it would be needed shows up in pacman -Q and I'm typing this from a KDE Plasma 6 session. /usr/include/qt6 is also present, with headers in it.

                            Please attach a screenshot of your Kits > Qt Versions.

                            Qt Creator needs to have access to qmake, qmake6 or qtpaths in order to mark a Qt version as found.

                            You might need to add a manual Qt entry there.

                            @zayd said in Kits all grayed out when creating new Qt Quick project on 14.0.0:

                            I already have it installed and have for a while, the installed version is 1.12.1.

                            It should have picked Ninja as generator for CMake.

                            Z Offline
                            Z Offline
                            zayd
                            wrote on last edited by
                            #13

                            @cristian-adam 44200d69-3d95-4e43-9c22-72915a486d85-image.png
                            I just added /usr/bin/qmake6 manually, it pops up now. I also was able to set the CMake generator to Ninja manually. After selecting Qt6 in the Qt version menu, I was able to get to the kit selection, where Desktop is no longer greyed out. However, when I get past that stage and fully create the project, it doesn't create any files. I tried setting it to generate the project in /home/main/this-is-a-test and nothing got created, same with /home/main/projects/test

                            1 Reply Last reply
                            0
                            • cristian-adamC Online
                              cristian-adamC Online
                              cristian-adam
                              wrote on last edited by
                              #14

                              I guess you have Qt Creator from Arch. How does a Qt Creator from https://download.qt.io/official_releases/qtcreator/ fare?

                              I don't know if everything is in place in the Arch Qt Creator.

                              Usually the project wizard does not result in projects that don't have any files created.

                              Can you compile an external Qt Quick project with your setup? Something like https://github.com/mitchcurtis/slate ?

                              Z 1 Reply Last reply
                              0
                              • cristian-adamC cristian-adam

                                I guess you have Qt Creator from Arch. How does a Qt Creator from https://download.qt.io/official_releases/qtcreator/ fare?

                                I don't know if everything is in place in the Arch Qt Creator.

                                Usually the project wizard does not result in projects that don't have any files created.

                                Can you compile an external Qt Quick project with your setup? Something like https://github.com/mitchcurtis/slate ?

                                Z Offline
                                Z Offline
                                zayd
                                wrote on last edited by
                                #15

                                @cristian-adam Tried using the .run, still nothing. I suspect it's this page where trouble starts, as it isn't finding git for some reason, while Qt Widgets projects do. Nothing other than "<None>" is available in the dropdown. d315a3c1-f010-4169-9abe-08c6e953b257-image.png

                                When I try to import the slate repo, it gives errors.434bfe12-0110-4cd3-9fec-78ea9dd2e9bf-image.png

                                Z 1 Reply Last reply
                                0
                                • Z zayd

                                  @cristian-adam Tried using the .run, still nothing. I suspect it's this page where trouble starts, as it isn't finding git for some reason, while Qt Widgets projects do. Nothing other than "<None>" is available in the dropdown. d315a3c1-f010-4169-9abe-08c6e953b257-image.png

                                  When I try to import the slate repo, it gives errors.434bfe12-0110-4cd3-9fec-78ea9dd2e9bf-image.png

                                  Z Offline
                                  Z Offline
                                  zayd
                                  wrote on last edited by
                                  #16

                                  @zayd Sorry for bumping, but realized when I get to this part with the screen that has the version control option and hit continue, this shows up in my terminal I'm running qtcreator from

                                  SOFT ASSERT [16:08:47.946]: "!m_files.isEmpty()" in /usr/src/debug/qtcreator/qt-creator/src/plugins/projectexplorer/jsonwizard/jsonwizard.cpp:337

                                  This happens on io.qt.QtCreator from Flathub too.

                                  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