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. I'm back with a GPU.. Qt Creator still not working
QtWS25 Last Chance

I'm back with a GPU.. Qt Creator still not working

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
144 Posts 7 Posters 39.2k 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.
  • JonBJ JonB

    @Mlibu
    Like I said, I have never used or installed QML. But if you keep your Ubuntu in this state I will just install that qtdeclarative5-dev tomorrow and see where I find myself :)

    M Offline
    M Offline
    Mlibu
    wrote on last edited by Mlibu
    #118

    @JonB So a question... I found this posted on the qt creator 6 release:

    https://www.qt.io/blog/qt-creator-6-released

    "The integrated Qt Quick Designer is now disabled by default. Qt Creator will open .ui.qml files in Qt Design Studio. This is a step towards a more integrated workflow between Qt Design Studio and Qt Creator (video). Qt Quick Designer is still there, you can manually enable it again by checking the QmlDesigner plugin in Help > About Plugins."

    Yet when I try to activate the plugin, there isn't one to activate.

    So if this was underway in qt creator 6, is it going to do anything different than qt design studio does anyway? Is this even supposed to work in qt creator 12?

    I watched some videos on qt design studio and they seemed to be more geared towards creating components than creating a full application. Also a lot of the functionality to migrate from photoshop is commercial and that won't be avilable.

    Ronel_qtmasterR 1 Reply Last reply
    0
    • M Mlibu

      @JonB So a question... I found this posted on the qt creator 6 release:

      https://www.qt.io/blog/qt-creator-6-released

      "The integrated Qt Quick Designer is now disabled by default. Qt Creator will open .ui.qml files in Qt Design Studio. This is a step towards a more integrated workflow between Qt Design Studio and Qt Creator (video). Qt Quick Designer is still there, you can manually enable it again by checking the QmlDesigner plugin in Help > About Plugins."

      Yet when I try to activate the plugin, there isn't one to activate.

      So if this was underway in qt creator 6, is it going to do anything different than qt design studio does anyway? Is this even supposed to work in qt creator 12?

      I watched some videos on qt design studio and they seemed to be more geared towards creating components than creating a full application. Also a lot of the functionality to migrate from photoshop is commercial and that won't be avilable.

      Ronel_qtmasterR Online
      Ronel_qtmasterR Online
      Ronel_qtmaster
      wrote on last edited by
      #119

      @Mlibu Exacty what i was saying above.Just check qml designer on plugin side, click on ok and restart Qt.it WILL locate your Qt Design studio

      M 1 Reply Last reply
      0
      • Ronel_qtmasterR Ronel_qtmaster

        @Mlibu Exacty what i was saying above.Just check qml designer on plugin side, click on ok and restart Qt.it WILL locate your Qt Design studio

        M Offline
        M Offline
        Mlibu
        wrote on last edited by
        #120

        @Ronel_qtmaster But what I said was, there is no Qt Quick Designer plugin to check in this install.

        Ronel_qtmasterR JoeCFDJ 2 Replies Last reply
        0
        • M Mlibu

          @Ronel_qtmaster But what I said was, there is no Qt Quick Designer plugin to check in this install.

          Ronel_qtmasterR Online
          Ronel_qtmasterR Online
          Ronel_qtmaster
          wrote on last edited by Ronel_qtmaster
          #121

          @Mlibu may i see the list? it is weird if it is not present on windows installation.It is QMLDESIGNER

          M 1 Reply Last reply
          0
          • M Mlibu

            @Ronel_qtmaster But what I said was, there is no Qt Quick Designer plugin to check in this install.

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by JoeCFD
            #122

            @Mlibu When did you install it?
            sudo apt install qttools5-dev-tools

            now you can write down all libs and packages you need into a shell script.

            M 1 Reply Last reply
            0
            • Ronel_qtmasterR Ronel_qtmaster

              @Mlibu may i see the list? it is weird if it is not present on windows installation.It is QMLDESIGNER

              M Offline
              M Offline
              Mlibu
              wrote on last edited by
              #123

              @Ronel_qtmaster Sorry I mixed up the threads. The plugin is missing on Ubuntu 12.04. I have it on windows, but then the page doesn't work properly.

              1 Reply Last reply
              0
              • JoeCFDJ JoeCFD

                @Mlibu When did you install it?
                sudo apt install qttools5-dev-tools

                now you can write down all libs and packages you need into a shell script.

                M Offline
                M Offline
                Mlibu
                wrote on last edited by
                #124

                @JoeCFD said in I'm back with a GPU.. Qt Creator still not working:

                qttools5-dev-tools

                qttools5-dev-tools was already installed as a dependency from something else.

                JoeCFDJ 1 Reply Last reply
                0
                • M Mlibu

                  @JoeCFD said in I'm back with a GPU.. Qt Creator still not working:

                  qttools5-dev-tools

                  qttools5-dev-tools was already installed as a dependency from something else.

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by JoeCFD
                  #125

                  @Mlibu Actually, Qt 6 is old in Ubuntu 22.04. You can install Qt 6.6.2 with Qt online installer. I purged Qt6 in Ubuntu 22.04 and installed Qt 6.6.2.

                  M 1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    @Mlibu Actually, Qt 6 is old in Ubuntu 22.04. You can install Qt 6.6.2 with Qt online installer. I purged Qt6 in Ubuntu 22.04 and installed Qt 6.6.2.

                    M Offline
                    M Offline
                    Mlibu
                    wrote on last edited by Mlibu
                    #126

                    @JoeCFD I think I found a couple other threads with the problem I am having.

                    https://forum.qt.io/topic/152332/item-could-not-be-created-please-help-me

                    I don't think it's to do with the install at all really. Rather, Qt is failing to interpret the small sample file and the rendering is messed up because it is confused about how large the window is. The error "item could not be created" on the window is the key I think.

                    Anyone who solved it seemed to switch from "Use fallback emulation layer" to "Use QML emulation layer that is built with the selected Qt" in Edit->Preferences->Qt Quick->Qt Quick Designer. I just don't quite know how it works or what to set it to yet.

                    Some people have run qmlpuppet on its own and seen if it has errors. Will try tomorrow.

                    M 1 Reply Last reply
                    0
                    • M Mlibu

                      @JoeCFD I think I found a couple other threads with the problem I am having.

                      https://forum.qt.io/topic/152332/item-could-not-be-created-please-help-me

                      I don't think it's to do with the install at all really. Rather, Qt is failing to interpret the small sample file and the rendering is messed up because it is confused about how large the window is. The error "item could not be created" on the window is the key I think.

                      Anyone who solved it seemed to switch from "Use fallback emulation layer" to "Use QML emulation layer that is built with the selected Qt" in Edit->Preferences->Qt Quick->Qt Quick Designer. I just don't quite know how it works or what to set it to yet.

                      Some people have run qmlpuppet on its own and seen if it has errors. Will try tomorrow.

                      M Offline
                      M Offline
                      Mlibu
                      wrote on last edited by Mlibu
                      #127

                      @Mlibu
                      So I just found this bug report, last reported in February!

                      https://bugreports.qt.io/browse/QTCREATORBUG-30202

                      Qt recommends to use Qt Design Studio! But it's not the same?? To my knowledge Design Studio doesn't even support adding signals and slots.

                      UPDATE: This is so very confusing... I found this page:

                      https://cutehmi.kde.org/docs/3/doc/md_using-qt-creator-in-design-mode.html

                      He says you need to build in release for the Designer to work so I did a release build but that didn't work for me. Then he says you need to set the QML emulation layer, which I was kind of on to.... but set it to what?? he doesn't say!

                      M 1 Reply Last reply
                      0
                      • M Mlibu

                        @Mlibu
                        So I just found this bug report, last reported in February!

                        https://bugreports.qt.io/browse/QTCREATORBUG-30202

                        Qt recommends to use Qt Design Studio! But it's not the same?? To my knowledge Design Studio doesn't even support adding signals and slots.

                        UPDATE: This is so very confusing... I found this page:

                        https://cutehmi.kde.org/docs/3/doc/md_using-qt-creator-in-design-mode.html

                        He says you need to build in release for the Designer to work so I did a release build but that didn't work for me. Then he says you need to set the QML emulation layer, which I was kind of on to.... but set it to what?? he doesn't say!

                        M Offline
                        M Offline
                        Mlibu
                        wrote on last edited by Mlibu
                        #128

                        @Mlibu Ok well I thought I had figured it out with this forum comment:

                        https://forum.qt.io/topic/148745/cannot-connect-to-qml-emulation-layer-qml-puppet

                        So I thought I needed to change the 'qml emulation layer' to the directory that holds qml2puppet which I found under QtQuickDesigner directory. But that didn't work either.

                        I also tried the puppet in /usr/share/qtcreator/qml/qmlpuppet/qml2puppet and that didn't work either.

                        I think I need to resign myself to the fact that there is no possible combination under which this will work for me. I have exhausted every measure I can find. I will either do QML by hand or use Design Studio.

                        It's a funny thing this problem. There are a few comments out there that Qt Creator is a piece of sh%t and they can't get it to work and they are just going to use something other than Qt and they basically have the same problems I have. Then there is a youtube video of someone having it work fine from 2023. I don't know how this all adds up, but this is taking time from other important work that I have.

                        I did ./QtDesignStudio/qt6_design_studio_reduced_version/bin/qml2puppet-4.4.0 --test

                        It looks fine. All libraries there and loaded.

                        After this I also tried to remove build directories and start a new project but it still doesn't work. There are just so many conflicting comments and instructions I don't know what to do any more.

                        Please, please.. if anyone can figure out what my problem may be, I would love to hear the answer. But I have had to put way too much time into this.

                        I'm going to tuck my tail between my legs and go back to Manjaro KDE now. I'll leave a small partition to test other OSes with if anyone has any other ideas.

                        Ronel_qtmasterR 1 Reply Last reply
                        0
                        • M Mlibu

                          @Mlibu Ok well I thought I had figured it out with this forum comment:

                          https://forum.qt.io/topic/148745/cannot-connect-to-qml-emulation-layer-qml-puppet

                          So I thought I needed to change the 'qml emulation layer' to the directory that holds qml2puppet which I found under QtQuickDesigner directory. But that didn't work either.

                          I also tried the puppet in /usr/share/qtcreator/qml/qmlpuppet/qml2puppet and that didn't work either.

                          I think I need to resign myself to the fact that there is no possible combination under which this will work for me. I have exhausted every measure I can find. I will either do QML by hand or use Design Studio.

                          It's a funny thing this problem. There are a few comments out there that Qt Creator is a piece of sh%t and they can't get it to work and they are just going to use something other than Qt and they basically have the same problems I have. Then there is a youtube video of someone having it work fine from 2023. I don't know how this all adds up, but this is taking time from other important work that I have.

                          I did ./QtDesignStudio/qt6_design_studio_reduced_version/bin/qml2puppet-4.4.0 --test

                          It looks fine. All libraries there and loaded.

                          After this I also tried to remove build directories and start a new project but it still doesn't work. There are just so many conflicting comments and instructions I don't know what to do any more.

                          Please, please.. if anyone can figure out what my problem may be, I would love to hear the answer. But I have had to put way too much time into this.

                          I'm going to tuck my tail between my legs and go back to Manjaro KDE now. I'll leave a small partition to test other OSes with if anyone has any other ideas.

                          Ronel_qtmasterR Online
                          Ronel_qtmasterR Online
                          Ronel_qtmaster
                          wrote on last edited by
                          #129

                          @Mlibu what if you download and install design studio apart from Qt?

                          M 1 Reply Last reply
                          0
                          • Ronel_qtmasterR Ronel_qtmaster

                            @Mlibu what if you download and install design studio apart from Qt?

                            M Offline
                            M Offline
                            Mlibu
                            wrote on last edited by
                            #130

                            @Ronel_qtmaster Yes design studio works but I wanted the designer in qt creator rather than design studio.

                            Ronel_qtmasterR 1 Reply Last reply
                            0
                            • M Mlibu

                              @Ronel_qtmaster Yes design studio works but I wanted the designer in qt creator rather than design studio.

                              Ronel_qtmasterR Online
                              Ronel_qtmasterR Online
                              Ronel_qtmaster
                              wrote on last edited by
                              #131

                              @Mlibu in qt6 design studio is the official designer for qml

                              M 1 Reply Last reply
                              1
                              • Ronel_qtmasterR Ronel_qtmaster

                                @Mlibu in qt6 design studio is the official designer for qml

                                M Offline
                                M Offline
                                Mlibu
                                wrote on last edited by
                                #132

                                @Ronel_qtmaster I was under the impression that qt creator was better for integrating with C++ and design studio was more for standalone QML.

                                T 1 Reply Last reply
                                0
                                • M Mlibu

                                  @Ronel_qtmaster I was under the impression that qt creator was better for integrating with C++ and design studio was more for standalone QML.

                                  T Offline
                                  T Offline
                                  Tink
                                  wrote on last edited by
                                  #133

                                  @Mlibu said in I'm back with a GPU.. Qt Creator still not working:

                                  @Ronel_qtmaster I was under the impression that qt creator was better for integrating with C++ and design studio was more for standalone QML.

                                  Create a qt quick project in qtcreator. Open it in qt design studio for visual editing and qml coding. Learn what makes sense to do with qml and javascript and when to use c++. It is designed to work together.

                                  It's all in the documentation.

                                  M 1 Reply Last reply
                                  1
                                  • T Tink

                                    @Mlibu said in I'm back with a GPU.. Qt Creator still not working:

                                    @Ronel_qtmaster I was under the impression that qt creator was better for integrating with C++ and design studio was more for standalone QML.

                                    Create a qt quick project in qtcreator. Open it in qt design studio for visual editing and qml coding. Learn what makes sense to do with qml and javascript and when to use c++. It is designed to work together.

                                    It's all in the documentation.

                                    M Offline
                                    M Offline
                                    Mlibu
                                    wrote on last edited by
                                    #134

                                    @Tink So just ignore the fact that qt themselves say that design studio is for people who just work with qt and don't use developer tools?

                                    If you only design UIs and don't neeIf you only design UIs and don't need the developer tools, you can install the stand-alone Qt Design Studio package. It contains all the Qt modules and tools you need to design UIs and preview them on the desktop. The Qt Quick code is automatically generated for you, and you can deliver it to developers for implementing the application. Developers can open the project in a developer tool called Qt Creator.d the developer tools, you can install the stand-alone Qt Design Studio package. It contains all the Qt modules and tools you need to design UIs and preview them on the desktop. The Qt Quick code is automatically generated for you, and you can deliver it to developers for implementing the application. Developers can open the project in a developer tool called Qt Creator.

                                    Also if there is a place in the documentation where they explain how to work with qml exported from design stidio? I see the robot arm tutorial and it says how to export but not how to interact with the code from c++. I know how to export c++ objects to the qml engine but i have never seen an end to end example of the whole thing. Whereas there are examples of how to do it with qt Creator.

                                    T 1 Reply Last reply
                                    0
                                    • M Mlibu

                                      @Tink So just ignore the fact that qt themselves say that design studio is for people who just work with qt and don't use developer tools?

                                      If you only design UIs and don't neeIf you only design UIs and don't need the developer tools, you can install the stand-alone Qt Design Studio package. It contains all the Qt modules and tools you need to design UIs and preview them on the desktop. The Qt Quick code is automatically generated for you, and you can deliver it to developers for implementing the application. Developers can open the project in a developer tool called Qt Creator.d the developer tools, you can install the stand-alone Qt Design Studio package. It contains all the Qt modules and tools you need to design UIs and preview them on the desktop. The Qt Quick code is automatically generated for you, and you can deliver it to developers for implementing the application. Developers can open the project in a developer tool called Qt Creator.

                                      Also if there is a place in the documentation where they explain how to work with qml exported from design stidio? I see the robot arm tutorial and it says how to export but not how to interact with the code from c++. I know how to export c++ objects to the qml engine but i have never seen an end to end example of the whole thing. Whereas there are examples of how to do it with qt Creator.

                                      T Offline
                                      T Offline
                                      Tink
                                      wrote on last edited by
                                      #135

                                      @Mlibu said in I'm back with a GPU.. Qt Creator still not working:

                                      @Tink So just ignore the fact that qt themselves say that design studio is for people who just work with qt and don't use developer tools?

                                      If you only design UIs and don't neeIf you only design UIs and don't need the developer tools, you can install the stand-alone Qt Design Studio package. It contains all the Qt modules and tools you need to design UIs and preview them on the desktop. The Qt Quick code is automatically generated for you, and you can deliver it to developers for implementing the application. Developers can open the project in a developer tool called Qt Creator.d the developer tools, you can install the stand-alone Qt Design Studio package. It contains all the Qt modules and tools you need to design UIs and preview them on the desktop. The Qt Quick code is automatically generated for you, and you can deliver it to developers for implementing the application. Developers can open the project in a developer tool called Qt Creator.

                                      Also if there is a place in the documentation where they explain how to work with qml exported from design stidio? I see the robot arm tutorial and it says how to export but not how to interact with the code from c++. I know how to export c++ objects to the qml engine but i have never seen an end to end example of the whole thing. Whereas there are examples of how to do it with qt Creator.

                                      I'm not sure what you mean by: " So just ignore the fact that qt themselves say that design studio is for people who just work with qt and don't use developer tools?" Do you have a source? Perhaps you mean that qml ui design is more aimed at designers?

                                      As for the other questions i'm not going to do your research for you. Just study the qtcreator and design studio manual and qml documentation.

                                      M 1 Reply Last reply
                                      0
                                      • T Tink

                                        @Mlibu said in I'm back with a GPU.. Qt Creator still not working:

                                        @Tink So just ignore the fact that qt themselves say that design studio is for people who just work with qt and don't use developer tools?

                                        If you only design UIs and don't neeIf you only design UIs and don't need the developer tools, you can install the stand-alone Qt Design Studio package. It contains all the Qt modules and tools you need to design UIs and preview them on the desktop. The Qt Quick code is automatically generated for you, and you can deliver it to developers for implementing the application. Developers can open the project in a developer tool called Qt Creator.d the developer tools, you can install the stand-alone Qt Design Studio package. It contains all the Qt modules and tools you need to design UIs and preview them on the desktop. The Qt Quick code is automatically generated for you, and you can deliver it to developers for implementing the application. Developers can open the project in a developer tool called Qt Creator.

                                        Also if there is a place in the documentation where they explain how to work with qml exported from design stidio? I see the robot arm tutorial and it says how to export but not how to interact with the code from c++. I know how to export c++ objects to the qml engine but i have never seen an end to end example of the whole thing. Whereas there are examples of how to do it with qt Creator.

                                        I'm not sure what you mean by: " So just ignore the fact that qt themselves say that design studio is for people who just work with qt and don't use developer tools?" Do you have a source? Perhaps you mean that qml ui design is more aimed at designers?

                                        As for the other questions i'm not going to do your research for you. Just study the qtcreator and design studio manual and qml documentation.

                                        M Offline
                                        M Offline
                                        Mlibu
                                        wrote on last edited by Mlibu
                                        #136

                                        @Tink I pasted the source. "If you only design UIs and don't need the developer tools, you can install the stand-alone Qt Design Studio package".

                                        They say that Design Studio is only for people who don't need developer tools. I need developer tools. For example, if Design Studio doesn't know about C++ and Creator doesn't know about QML, how can they make a signal/slot from one to the other? How can you with with a C++ object that you register into the engine?

                                        I searched on this and found a SO question about it and the answer is that Design Studio is just for UI design. I tried to go to the document that they refer to but it is a 404.

                                        https://stackoverflow.com/questions/74696198/how-can-i-connect-functions-on-an-hpp-and-cpp-file-into-qt-design-studio

                                        This is why I thought it would be best to get Qt Creator working.

                                        I'm not sure how I should "research" this. I have already searched the Qt Documents and youtube for tutorials. It seems that the Qt docs either talk about Qt Creator or Qt Design Studio. It says "design studio closes the designer to developer gap" a lot but there are no examples of actually doing so and it seems you have to look at their projects. Even on youtube there is only one video that encompasses QML design and C++ on the same project. I even searched Udemy for a course but mostly everything is Qt5. I'm used to open source stuff having a lot more information available with a lot of people making videos and a lot of step by step tutorials. It's kind of the spirit that you not have to pay for courses in order to learn it.

                                        T 1 Reply Last reply
                                        0
                                        • M Mlibu

                                          @Tink I pasted the source. "If you only design UIs and don't need the developer tools, you can install the stand-alone Qt Design Studio package".

                                          They say that Design Studio is only for people who don't need developer tools. I need developer tools. For example, if Design Studio doesn't know about C++ and Creator doesn't know about QML, how can they make a signal/slot from one to the other? How can you with with a C++ object that you register into the engine?

                                          I searched on this and found a SO question about it and the answer is that Design Studio is just for UI design. I tried to go to the document that they refer to but it is a 404.

                                          https://stackoverflow.com/questions/74696198/how-can-i-connect-functions-on-an-hpp-and-cpp-file-into-qt-design-studio

                                          This is why I thought it would be best to get Qt Creator working.

                                          I'm not sure how I should "research" this. I have already searched the Qt Documents and youtube for tutorials. It seems that the Qt docs either talk about Qt Creator or Qt Design Studio. It says "design studio closes the designer to developer gap" a lot but there are no examples of actually doing so and it seems you have to look at their projects. Even on youtube there is only one video that encompasses QML design and C++ on the same project. I even searched Udemy for a course but mostly everything is Qt5. I'm used to open source stuff having a lot more information available with a lot of people making videos and a lot of step by step tutorials. It's kind of the spirit that you not have to pay for courses in order to learn it.

                                          T Offline
                                          T Offline
                                          Tink
                                          wrote on last edited by
                                          #137

                                          @Mlibu said in I'm back with a GPU.. Qt Creator still not working:

                                          @Tink I pasted the source. "If you only design UIs and don't need the developer tools, you can install the stand-alone Qt Design Studio package".

                                          They say that Design Studio is only for people who don't need developer tools. I need developer tools. For example, if Design Studio doesn't know about C++ and Creator doesn't know about QML, how can they make a signal/slot from one to the other? How can you with with a C++ object that you register into the engine?

                                          I searched on this and found a SO question about it and the answer is that Design Studio is just for UI design. I tried to go to the document that they refer to but it is a 404.

                                          https://stackoverflow.com/questions/74696198/how-can-i-connect-functions-on-an-hpp-and-cpp-file-into-qt-design-studio

                                          This is why I thought it would be best to get Qt Creator working.

                                          I'm not sure how I should "research" this. I have already searched the Qt Documents and youtube for tutorials. It seems that the Qt docs either talk about Qt Creator or Qt Design Studio. It says "design studio closes the designer to developer gap" a lot but there are no examples of actually doing so and it seems you have to look at their projects. Even on youtube there is only one video that encompasses QML design and C++ on the same project. I even searched Udemy for a course but mostly everything is Qt5. I'm used to open source stuff having a lot more information available with a lot of people making videos and a lot of step by step tutorials. It's kind of the spirit that you not have to pay for courses in order to learn it.

                                          So your source is a SO post from someone who is just as confused as you are and then you interpret the answer incorrectly... well let me also give you a source and lets see how you interpret that:

                                          https://doc.qt.io/qt-6/qtquick-tools-and-utilities.html
                                          https://doc.qt.io/qt-6/qtquick-codesamples.html#developing-qt-quick-applications

                                          M 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