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.3k 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.
  • 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