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. Error => line:0 the the design mode requires a valid Qt kit.(PySide6)
Forum Updated to NodeBB v4.3 + New Features

Error => line:0 the the design mode requires a valid Qt kit.(PySide6)

Scheduled Pinned Locked Moved Solved Qt for Python
27 Posts 9 Posters 11.6k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by SGaist
    #7

    Did you configure your Python environment properly ?
    Did you select one that contains your installation of PySide ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    A 2 Replies Last reply
    0
    • SGaistS SGaist

      Did you configure your Python environment properly ?
      Did you select one that contains your installation of PySide ?

      A Offline
      A Offline
      Abdullah.S
      wrote on last edited by
      #8

      @SGaist yes, I did

      1 Reply Last reply
      0
      • SGaistS SGaist

        Did you configure your Python environment properly ?
        Did you select one that contains your installation of PySide ?

        A Offline
        A Offline
        Abdullah.S
        wrote on last edited by
        #9

        @SGaist it still does not work

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #10

          Can you show your configuration ?
          Are you using a virtual environment ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          0
          • V Offline
            V Offline
            vishnumg
            wrote on last edited by
            #11

            I'm using PySide2. Same issue here.

            Qt Creator 5.0.2
            Based on Qt 5.15.2 (MSVC 2019, 64 bit)
            

            I tried with different versions of Python with PySide2 installed. To verify, when I click run button, the application is launched and working properly.
            When I try to edit QML files in Design Mode, I get the error:

            Line: 0: The Design Mode requires a valid Qt kit.
            
            1 Reply Last reply
            0
            • SGaistS SGaist

              Can you show your configuration ?
              Are you using a virtual environment ?

              A Offline
              A Offline
              Abdullah.S
              wrote on last edited by Abdullah.S
              #12

              @SGaist Maybe i misunderstood you, but I will share the images of kits and python
              settings.

              Screen Shot 2022-03-02 at 20.27.48.png

              Screen Shot 2022-03-02 at 20.28.01.png .

              and this is my text edit's beginning

              Screen Shot 2022-03-02 at 20.33.22.png

              Thank you for your interest

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #13

                The message looks like related to your emscripten kit. Are you going to develop for it ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                A 1 Reply Last reply
                0
                • SGaistS SGaist

                  The message looks like related to your emscripten kit. Are you going to develop for it ?

                  A Offline
                  A Offline
                  Abdullah.S
                  wrote on last edited by
                  #14

                  @SGaist said in Error => line:0 the the design mode requires a valid Qt kit.(PySide6):

                  Are you going to develop for it

                  I couldn't understand,I really do not know what emscripten kit is. Should I delete something or install something ?

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #15

                    This is the webassembly kit.

                    If you don't know what I am talking about, I would recommend that your remove all Qt versions that you are not going to develop with.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    A 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      This is the webassembly kit.

                      If you don't know what I am talking about, I would recommend that your remove all Qt versions that you are not going to develop with.

                      A Offline
                      A Offline
                      Abdullah.S
                      wrote on last edited by
                      #16

                      @SGaist I removed them but it still gives me the error
                      Screen Shot 2022-03-03 at 14.17.45.png
                      Screen Shot 2022-03-03 at 14.18.00.png

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #17

                        What do you have now in the Python part ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        A 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          What do you have now in the Python part ?

                          A Offline
                          A Offline
                          Abdullah.S
                          wrote on last edited by
                          #18

                          @SGaist Screen Shot 2022-03-04 at 08.22.13.png

                          if you are talking about this, this is the same as before

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            Abdullah.S
                            wrote on last edited by
                            #19

                            guys I solved the problem. The problem was actually very simple. only you need to check the kits if their qt version is right or not. For example I use Desktop (x86-darwin-generic-mach_o-64bit) kit for my Qt Quick and when I scroll down the kits page there is qt version for the kit you selected, there are some options; "none", "Qt 6.2.3 for macOS", "Qt 6.2.2 (6.2.2)...." and you should choose the right one. thanks for all your help.

                            J 1 Reply Last reply
                            1
                            • L Offline
                              L Offline
                              louis_CHEVALIER
                              wrote on last edited by
                              #20

                              @Abdullah-S hello, I think I have the same issue but I don't know how to fix it

                              jsulmJ 1 Reply Last reply
                              0
                              • L louis_CHEVALIER

                                @Abdullah-S hello, I think I have the same issue but I don't know how to fix it

                                jsulmJ Offline
                                jsulmJ Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on last edited by
                                #21

                                @louis_CHEVALIER The OP wrote in his last post here how he fixed the issue - did you check that?

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

                                L 1 Reply Last reply
                                0
                                • jsulmJ jsulm

                                  @louis_CHEVALIER The OP wrote in his last post here how he fixed the issue - did you check that?

                                  L Offline
                                  L Offline
                                  louis_CHEVALIER
                                  wrote on last edited by
                                  #22

                                  @jsulm hello, i saw the last post but i couldn't get it to work

                                  jsulmJ 1 Reply Last reply
                                  0
                                  • L louis_CHEVALIER

                                    @jsulm hello, i saw the last post but i couldn't get it to work

                                    jsulmJ Offline
                                    jsulmJ Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #23

                                    @louis_CHEVALIER Then provide more information about your issue and what you tried...

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

                                    1 Reply Last reply
                                    0
                                    • W Offline
                                      W Offline
                                      weekly
                                      wrote on last edited by
                                      #24

                                      屏幕截图 2023-08-03 083937.png
                                      Please help me analyze this problem

                                      jsulmJ 1 Reply Last reply
                                      0
                                      • W weekly

                                        屏幕截图 2023-08-03 083937.png
                                        Please help me analyze this problem

                                        jsulmJ Offline
                                        jsulmJ Offline
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #25

                                        @weekly What problem?

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

                                        1 Reply Last reply
                                        0
                                        • A Abdullah.S

                                          guys I solved the problem. The problem was actually very simple. only you need to check the kits if their qt version is right or not. For example I use Desktop (x86-darwin-generic-mach_o-64bit) kit for my Qt Quick and when I scroll down the kits page there is qt version for the kit you selected, there are some options; "none", "Qt 6.2.3 for macOS", "Qt 6.2.2 (6.2.2)...." and you should choose the right one. thanks for all your help.

                                          J Offline
                                          J Offline
                                          Jason_asj2023
                                          wrote on last edited by
                                          #26

                                          @Abdullah-S
                                          Thanks!
                                          This solved my probem, and it's that simple!!!
                                          I installed qt coorectly, and python、Pyside6, So the solution is just like Abdullah said:
                                          GO to Preferences -> Kit-> Auto-detected Qt -> scroll down-> Qt version->select the version.

                                          Thanks again!

                                          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