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
Forum Updated to NodeBB v4.3 + New Features

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.
  • DiracsbracketD Diracsbracket

    @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 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.

    DiracsbracketD 1 Reply Last reply
    0
    • M mr.jo

      @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.

      DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by Diracsbracket
      #22

      @mr.jo
      Sure.

      M 1 Reply Last reply
      0
      • DiracsbracketD Diracsbracket

        @mr.jo
        Sure.

        M Offline
        M Offline
        mr.jo
        wrote on last edited by
        #23

        @Diracsbracket thank bro for your infomation. :D

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Seongnam Jee
          wrote on 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 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