Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt module not installed in QtDesigner

Qt module not installed in QtDesigner

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
25 Posts 3 Posters 8.5k 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.
  • M mr.jo
    25 Aug 2018, 08:34

    ok the problem because qtchart cannot combine with qguiapplication, i use qapplication and application is work ! but next question is why my chart is not shown in qt designer form editor??

    M Offline
    M Offline
    mr.jo
    wrote on 25 Aug 2018, 08:44 last edited by
    #9

    like this @Diracsbracket
    0_1535186220407_Screenshot at 2018-08-25 15-36-31.png

    D 1 Reply Last reply 25 Aug 2018, 10:20
    0
    • M mr.jo
      25 Aug 2018, 08:44

      like this @Diracsbracket
      0_1535186220407_Screenshot at 2018-08-25 15-36-31.png

      D Offline
      D Offline
      Diracsbracket
      wrote on 25 Aug 2018, 10:20 last edited by Diracsbracket
      #10

      @mr.jo
      What do you mean? In the image, the chart is currently selected, and its parameters are shown in the Right panel.

      If you mean that it does not appear in the list of QML types to choose from, I don't know why that is. It does not appear in mine either.

      I have tried the to build the designer plugin as described here:
      https://stackoverflow.com/questions/37869807/qt-charts-and-data-visualization-widgets
      But it does not help to add those types to the QML type list.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mr.jo
        wrote on 25 Aug 2018, 13:31 last edited by
        #11

        yes its selected,. but if i want to change coordinate or size the charts form, i must change from source code?we cant just change from designer like a qt quick control or basic form? or maybe i dont understand how qt designer's work? or maybe thats module for designer only available for commercial version?
        0_1535203752538_WhatsApp Image 2018-08-25 at 20.27.55.jpeg

        D 1 Reply Last reply 25 Aug 2018, 13:50
        0
        • M mr.jo
          25 Aug 2018, 13:31

          yes its selected,. but if i want to change coordinate or size the charts form, i must change from source code?we cant just change from designer like a qt quick control or basic form? or maybe i dont understand how qt designer's work? or maybe thats module for designer only available for commercial version?
          0_1535203752538_WhatsApp Image 2018-08-25 at 20.27.55.jpeg

          D Offline
          D Offline
          Diracsbracket
          wrote on 25 Aug 2018, 13:50 last edited by Diracsbracket
          #12

          @mr.jo
          You can change e.g. the size and position from both the code and Qt Designer.
          In fact, in Qt Designer, you can have both the code and the form view side-by-side.
          If you change the code, you will see the corresponding Qt Designer fields updated
          accordingly.
          This has nothing to do with a license. QtCharts no longer requires a commercial
          license.

          0_1535204908352_264d3c1a-9e79-43e8-aec2-a20cc924f5ae-image.png

          M 1 Reply Last reply 25 Aug 2018, 14:10
          0
          • D Diracsbracket
            25 Aug 2018, 13:50

            @mr.jo
            You can change e.g. the size and position from both the code and Qt Designer.
            In fact, in Qt Designer, you can have both the code and the form view side-by-side.
            If you change the code, you will see the corresponding Qt Designer fields updated
            accordingly.
            This has nothing to do with a license. QtCharts no longer requires a commercial
            license.

            0_1535204908352_264d3c1a-9e79-43e8-aec2-a20cc924f5ae-image.png

            M Offline
            M Offline
            mr.jo
            wrote on 25 Aug 2018, 14:10 last edited by
            #13

            @Diracsbracket thanks alot , but we still cant see widget qtchart in designer? just a blank form like that, right??

            D 1 Reply Last reply 25 Aug 2018, 14:20
            0
            • M mr.jo
              25 Aug 2018, 14:10

              @Diracsbracket thanks alot , but we still cant see widget qtchart in designer? just a blank form like that, right??

              D Offline
              D Offline
              Diracsbracket
              wrote on 25 Aug 2018, 14:20 last edited by
              #14

              @mr.jo
              Yes. You don't see the actual contents of the graph in Designer. You must run the program to see it.

              M 1 Reply Last reply 25 Aug 2018, 14:37
              0
              • D Diracsbracket
                25 Aug 2018, 14:20

                @mr.jo
                Yes. You don't see the actual contents of the graph in Designer. You must run the program to see it.

                M Offline
                M Offline
                mr.jo
                wrote on 25 Aug 2018, 14:37 last edited by
                #15

                @Diracsbracket said in Qt module not installed in QtDesigner:

                gner. You must run the program to see it.

                but i confuse about that warning, maybe ok i cant see in designer, i just code that what paramater i need for that charts and not use a designer but its bother me hahaha. is it bug on qt designer and module, or maybe thats qtdesigner's work. fyi bluetooth sensor websocket webengine and many module have a warning like that. its bother me !!! haha..

                D 1 Reply Last reply 25 Aug 2018, 16:24
                0
                • M mr.jo
                  25 Aug 2018, 14:37

                  @Diracsbracket said in Qt module not installed in QtDesigner:

                  gner. You must run the program to see it.

                  but i confuse about that warning, maybe ok i cant see in designer, i just code that what paramater i need for that charts and not use a designer but its bother me hahaha. is it bug on qt designer and module, or maybe thats qtdesigner's work. fyi bluetooth sensor websocket webengine and many module have a warning like that. its bother me !!! haha..

                  D Offline
                  D Offline
                  Diracsbracket
                  wrote on 25 Aug 2018, 16:24 last edited by
                  #16

                  @mr.jo
                  Yes, I agree. These false warnings are annoying and should get fixed.

                  M 1 Reply Last reply 25 Aug 2018, 16:39
                  0
                  • D Diracsbracket
                    25 Aug 2018, 16:24

                    @mr.jo
                    Yes, I agree. These false warnings are annoying and should get fixed.

                    M Offline
                    M Offline
                    mr.jo
                    wrote on 25 Aug 2018, 16:39 last edited by
                    #17

                    @Diracsbracket but if u check in QT instalation folder in /qt/version/gcc_64/ there is all module that u installed, maybe qtcreator not using that path so qtcreator got that warning. if u check in /qt/Tools/QtCreator/lib/Qt/qml ,that folder not contain all module maybe just base module.

                    D 1 Reply Last reply 25 Aug 2018, 16:43
                    0
                    • M mr.jo
                      25 Aug 2018, 16:39

                      @Diracsbracket but if u check in QT instalation folder in /qt/version/gcc_64/ there is all module that u installed, maybe qtcreator not using that path so qtcreator got that warning. if u check in /qt/Tools/QtCreator/lib/Qt/qml ,that folder not contain all module maybe just base module.

                      D Offline
                      D Offline
                      Diracsbracket
                      wrote on 25 Aug 2018, 16:43 last edited by
                      #18

                      @mr.jo
                      I have all modules, yet get the warnings, even in Qt Creator after a while in the QML source code. That must be a bug.

                      M 1 Reply Last reply 26 Aug 2018, 03:03
                      0
                      • D Diracsbracket
                        25 Aug 2018, 16:43

                        @mr.jo
                        I have all modules, yet get the warnings, even in Qt Creator after a while in the QML source code. That must be a bug.

                        M Offline
                        M Offline
                        mr.jo
                        wrote on 26 Aug 2018, 03:03 last edited by
                        #19

                        @Diracsbracket i tried to compile plugin qtchart again from source and get libqtchartdesigner.so then i put in path gcc_64/plugins/designer, after that i run designer from gcc_64/bin/ (standalone), and i got qt chart chartview widget, but still not have qtchart widget in qt quick designer(qt creator). :D im still tried how this application works perfectly haha. maybe because configuration path in qml emulation layer, but i dont know what it is :D

                        D 1 Reply Last reply 26 Aug 2018, 09:20
                        0
                        • M mr.jo
                          26 Aug 2018, 03:03

                          @Diracsbracket i tried to compile plugin qtchart again from source and get libqtchartdesigner.so then i put in path gcc_64/plugins/designer, after that i run designer from gcc_64/bin/ (standalone), and i got qt chart chartview widget, but still not have qtchart widget in qt quick designer(qt creator). :D im still tried how this application works perfectly haha. maybe because configuration path in qml emulation layer, but i dont know what it is :D

                          D Offline
                          D Offline
                          Diracsbracket
                          wrote on 26 Aug 2018, 09:20 last edited by
                          #20

                          @mr.jo
                          To be honest, I've never used Designer for QML. Due to the declarative nature of QML, I find it easier to just work from the code directly.

                          M 1 Reply Last reply 26 Aug 2018, 14:29
                          0
                          • D Diracsbracket
                            26 Aug 2018, 09:20

                            @mr.jo
                            To be honest, I've never used Designer for QML. Due to the declarative nature of QML, I find it easier to just work from the code directly.

                            M Offline
                            M Offline
                            mr.jo
                            wrote on 26 Aug 2018, 14:29 last edited by
                            #21

                            @Diracsbracket me too bro, but im curious with that warning, im using designer just want to know how my app looks like, without waiting for compilation. :D because the more complex the application is the longer the compilation.

                            D 1 Reply Last reply 26 Aug 2018, 14:43
                            0
                            • M mr.jo
                              26 Aug 2018, 14:29

                              @Diracsbracket me too bro, but im curious with that warning, im using designer just want to know how my app looks like, without waiting for compilation. :D because the more complex the application is the longer the compilation.

                              D Offline
                              D Offline
                              Diracsbracket
                              wrote on 26 Aug 2018, 14:43 last edited by Diracsbracket
                              #22

                              @mr.jo
                              Sure.

                              M 1 Reply Last reply 27 Aug 2018, 03:58
                              0
                              • D Diracsbracket
                                26 Aug 2018, 14:43

                                @mr.jo
                                Sure.

                                M Offline
                                M Offline
                                mr.jo
                                wrote on 27 Aug 2018, 03:58 last edited by
                                #23

                                @Diracsbracket thank bro for your infomation. :D

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  Seongnam Jee
                                  wrote on 15 Dec 2020, 04:36 last edited by
                                  #24
                                  int main(int argc, char *argv[])
                                  {
                                      // Qt Charts uses Qt Graphics View Framework for drawing, therefore QApplication must be used.
                                      QApplication app(argc, argv);
                                  
                                      QQuickView viewer;
                                  
                                      // The following are needed to make examples run without having to install the module
                                      // in desktop environments.
                                  #ifdef Q_OS_WIN
                                      QString extraImportPath(QStringLiteral("%1/../../../../%2"));
                                  #else
                                      QString extraImportPath(QStringLiteral("%1/../../../%2"));
                                  #endif
                                      viewer.engine()->addImportPath(extraImportPath.arg(QGuiApplication::applicationDirPath(),
                                                                        QString::fromLatin1("qml")));
                                      //***** [Solve] FORCE THE MODULE TO BE IMPORTED.
                                      QObject::connect(viewer.engine(), &QQmlEngine::quit, &viewer, &QWindow::close);
                                      
                                      qDebug() << viewer.engine()->importPathList();
                                  
                                      viewer.setTitle(QStringLiteral("QML Axes"));
                                      viewer.setSource(QUrl("qrc:/qml/qmlaxes/main.qml"));
                                      viewer.setResizeMode(QQuickView::SizeRootObjectToView);
                                      viewer.show();
                                  
                                      return app.exec();
                                  }
                                  

                                  [Output through qDebug()]
                                  ("/home/snjee/workspace_qt/maxelecPrjs/build-maxCoffeeTdsMeterApp-Desktop_Qt_5_15_2_GCC_64bit-Debug", "qrc:/qt-project.org/imports", "/opt/Qt/5.15.2/gcc_64/qml")

                                  You can find the answer in the built-in "QML Axes" example source.

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    Seongnam Jee
                                    wrote on 20 Jan 2021, 04:14 last edited by
                                    #25

                                    "... is not installed"
                                    "found not working imports...."
                                    I have now found the correct solution.
                                    All problems were solved.
                                    => Solutions : https://stackoverflow.com/questions/22320541/import-qtquick-controls-2-1-qml-module-not-found

                                    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