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
QtWS25 Last Chance

the design mode requires a valid qt kit error

Scheduled Pinned Locked Moved Unsolved Qt for Python
15 Posts 2 Posters 984 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.
  • S Offline
    S Offline
    sinpool
    wrote on 8 Sept 2024, 09:49 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
    • A Offline
      A Offline
      Axel Spoerl
      Moderators
      wrote on 8 Sept 2024, 09:55 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 8 Sept 2024, 10:02 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
        • A Offline
          A Offline
          Axel Spoerl
          Moderators
          wrote on 8 Sept 2024, 10:06 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 8 Sept 2024, 10:14 last edited by sinpool 9 Aug 2024, 10:37
            #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
            • A Offline
              A Offline
              Axel Spoerl
              Moderators
              wrote on 8 Sept 2024, 10:38 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 8 Sept 2024, 10:42 last edited by sinpool 9 Aug 2024, 10:51
                #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
                • A Offline
                  A Offline
                  Axel Spoerl
                  Moderators
                  wrote on 8 Sept 2024, 11:05 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 8 Sept 2024, 11:12 last edited by sinpool 9 Aug 2024, 11:14
                    #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
                    • A Offline
                      A Offline
                      Axel Spoerl
                      Moderators
                      wrote on 8 Sept 2024, 11:18 last edited by Axel Spoerl 9 Aug 2024, 11:18
                      #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 8 Sept 2024, 11:23 last edited by
                        #15

                        ok thank you so much

                        1 Reply Last reply
                        0

                        14/15

                        8 Sept 2024, 11:18

                        • Login

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