Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. the design mode requires a valid qt kit error
Forum Updated to NodeBB v4.3 + New Features

the design mode requires a valid qt kit error

Scheduled Pinned Locked Moved Unsolved Qt for Python
15 Posts 2 Posters 1.1k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    sinpool
    wrote on last edited by sinpool
    #1

    I'm trying to use qt creator for qml with python, but when I try to switch to design mode it shows this error "the design mode requires a valid qt kit" and I checked my kit options and it has valid options I guess, here's a screenshot of that section:
    11f01e99-27f5-44c4-91e6-741f729e1656-image.png
    my configurations is this :
    Qt Creator 14.0.1
    Qt6.7 and 5.15
    python 3.10.11
    windows 11

    what should I do to fix this issue? can't use design mode because of this error

    1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      First of all, why 5.15.2? That’s out of support.
      For using design mode, a valid kit has to be selected for the project at hand. That’s probably not the case.

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sinpool
        wrote on last edited by sinpool
        #3

        that's because I'm working with pyqt5
        but It doesn't matter, same happens when I choose pyside6 as default on creating project
        also when I open qtcreator for first time and enter design mode ui freezes for a while(can't click on components or scroll down) then this error happens, even in code tab on design mode none of components, assets, properties are working just appear frozen there
        I installed qt6.7.2 llvm-mingw and qt5.15.2 using online installer, is there any steps I should do after installing via online installer?
        also is there any better ide to work with qml+python? I tried qt design studio but couldn't find out how should I add python part and run it, couldn't find a good tutorial on that yet
        these are things that I installed via online installer:
        05951263-3809-4e76-b21e-006c25938000-image.png
        is there anything required missing?

        1 Reply Last reply
        0
        • Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          You're talking about the widget designer, right?
          Can you create a sample widgets project and use the designer?
          Let's find out if it always crashes, or if it's related to Python.

          Software Engineer
          The Qt Company, Oslo

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sinpool
            wrote on last edited by
            #5

            yeah its working with widgets application both in python and cpp
            but when I create qml project designer crashes with that error

            1 Reply Last reply
            0
            • Axel SpoerlA Offline
              Axel SpoerlA Offline
              Axel Spoerl
              Moderators
              wrote on last edited by
              #6

              Why would you want to use the widgets designer in a QML project?
              Can you post the code of your project?
              (And: Please, please use capitalization in your posts. I am doing this in my free time and it's just so hard to read without!)

              Software Engineer
              The Qt Company, Oslo

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sinpool
                wrote on last edited by
                #7

                If not designer what should I use for QML then?
                I'm just starting with QML, previously worked with PyQt Widgets and implemented my project there, now I'm trying to convert my widgets app to QML

                1 Reply Last reply
                0
                • Axel SpoerlA Offline
                  Axel SpoerlA Offline
                  Axel Spoerl
                  Moderators
                  wrote on last edited by
                  #8

                  If you refer to the widget designer, that's a tool provided especially for widgets.
                  For QML, you can use Qt Design Studio, which is in fact much more powerful.

                  Software Engineer
                  The Qt Company, Oslo

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sinpool
                    wrote on last edited by sinpool
                    #9

                    I tried it first but couldn't find out how to use Python there, do you know any tutorial on working with QML and Python in Qt Design Studio?
                    this is what I refer it says qmldesigner:
                    c09a50a6-f3e5-4298-9066-6cb1cf9db1c3-image.png

                    1 Reply Last reply
                    0
                    • Axel SpoerlA Offline
                      Axel SpoerlA Offline
                      Axel Spoerl
                      Moderators
                      wrote on last edited by
                      #10

                      I guess you know this already.
                      I'd need to know more about what exactly you want to achieve.
                      QML is designed to create declarative UIs and works well with design studio. It explicitly doesn't work with the widgets designer.
                      Where comes Python into play? Which part of the application is covered by Python?

                      Software Engineer
                      The Qt Company, Oslo

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        sinpool
                        wrote on last edited by sinpool
                        #11

                        yeah but that link is in QtCreator not Design Studio,
                        backend is in Python, QML is just doing UI stuff
                        I'm showing 3 images in my app, a live feed from camera, a thumbnail of whole image, a big area around FOV, all calculations and heavy operations are being done in python and QML just will show UI, I implemented it in PyQt widgets already with static resolution and sizes, then I heard about QML and wanted to try it to check if it makes my app any smoother or more responsive

                        1 Reply Last reply
                        0
                        • Axel SpoerlA Offline
                          Axel SpoerlA Offline
                          Axel Spoerl
                          Moderators
                          wrote on last edited by
                          #12

                          @sinpool said in the design mode requires a valid qt kit error:

                          then I heard about QML

                          Does that mean, you are actually not familiar with the concept of QML?
                          In that case, I suggest you try a few tutorials first just with QML first.
                          Writing a UI with 3 embedded images in QML (without a design tool) isn't complex at all.
                          In contrast, extending QML with custom types and application logic in Python is complex and requires a deeper understanding of how QML works.

                          Software Engineer
                          The Qt Company, Oslo

                          1 Reply Last reply
                          1
                          • S Offline
                            S Offline
                            sinpool
                            wrote on last edited by sinpool
                            #13

                            I watched KDAB YT video series about QML so I'm a bit familiar just have no clue how to interface to python that I need to do in my project, so you're saying its better to just code QML instead of looking for designer tools to design first version and then start customizing it?

                            1 Reply Last reply
                            0
                            • Axel SpoerlA Offline
                              Axel SpoerlA Offline
                              Axel Spoerl
                              Moderators
                              wrote on last edited by Axel Spoerl
                              #14

                              I'd not bother with a design tool if I were to implement a window with three images.
                              Just make sure, you use an ApplicationWindow QML type, which makes everything responsive to color scheme changes as well.

                              I have never extended QML with Python, I'd choose C++ for that matter.
                              It should work somehow, here is a tutorial.

                              Software Engineer
                              The Qt Company, Oslo

                              1 Reply Last reply
                              1
                              • S Offline
                                S Offline
                                sinpool
                                wrote on last edited by
                                #15

                                ok thank you so much

                                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