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. Problem with build in Design Studio
Forum Updated to NodeBB v4.3 + New Features

Problem with build in Design Studio

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 3.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.
  • MonoFoxM Offline
    MonoFoxM Offline
    MonoFox
    wrote on last edited by
    #1

    Hi,
    I have done my project in Qt Design Studio, where I can debug my instrument cluster. What is the next step of my work? unfortunately, I cant build my project in design studio, and I dont know why. https://scr.hu/NaaMZOA | https://scr.hu/qNNZjm2
    I've try open my project in Qt Creator 4.7.2 (enterprise), but program doesnt recognise libs like:
    import QtQuick.Studio.Components 1.0
    import QtQuick.Timeline 1.0

    When i've put that libs into folder with libs in Qt Creator dir, there was problem with build (During the step qmake). But I did debug that project.

    There is some idea to built my project in Design Studio to .exe ?

    T 1 Reply Last reply
    0
    • MonoFoxM MonoFox

      Hi,
      I have done my project in Qt Design Studio, where I can debug my instrument cluster. What is the next step of my work? unfortunately, I cant build my project in design studio, and I dont know why. https://scr.hu/NaaMZOA | https://scr.hu/qNNZjm2
      I've try open my project in Qt Creator 4.7.2 (enterprise), but program doesnt recognise libs like:
      import QtQuick.Studio.Components 1.0
      import QtQuick.Timeline 1.0

      When i've put that libs into folder with libs in Qt Creator dir, there was problem with build (During the step qmake). But I did debug that project.

      There is some idea to built my project in Design Studio to .exe ?

      T Offline
      T Offline
      Thomas Hartmann
      wrote on last edited by
      #2

      Hi,

      The required import paths have to setup manually.

      This is usually done using QmlEngine::addImportPath() from C++. For qmake based projects one can use QML_IMPORT_PATH to make Qt Creator aware of plugins (code completion/code model).
      For non qmake based projects the safest way is to fall back to QML2_IMPORT_PATH the environment variable for IDE support.

      More info on QML import paths can be found here: http://doc.qt.io/qt-5/qtqml-syntax-imports.html#qml-import-path

      In your case you have to add the import path for the project itself, since it does contain e.g. the QtQuick.Studio.Components plugin. You find those plugins in the 'imports' subdirectory of your Qt Design Studio project.

      Also the timeline module is not part of Qt 5.12, yet. It can be found here: https://github.com/qt/qtquicktimeline
      Building and installing (make install) will install the module into your Qt.

      This should solve your issues with missing imports.

      MonoFoxM 1 Reply Last reply
      4
      • T Thomas Hartmann

        Hi,

        The required import paths have to setup manually.

        This is usually done using QmlEngine::addImportPath() from C++. For qmake based projects one can use QML_IMPORT_PATH to make Qt Creator aware of plugins (code completion/code model).
        For non qmake based projects the safest way is to fall back to QML2_IMPORT_PATH the environment variable for IDE support.

        More info on QML import paths can be found here: http://doc.qt.io/qt-5/qtqml-syntax-imports.html#qml-import-path

        In your case you have to add the import path for the project itself, since it does contain e.g. the QtQuick.Studio.Components plugin. You find those plugins in the 'imports' subdirectory of your Qt Design Studio project.

        Also the timeline module is not part of Qt 5.12, yet. It can be found here: https://github.com/qt/qtquicktimeline
        Building and installing (make install) will install the module into your Qt.

        This should solve your issues with missing imports.

        MonoFoxM Offline
        MonoFoxM Offline
        MonoFox
        wrote on last edited by
        #3

        @Thomas-Hartmann
        Thank you very much for your response
        I was able to add the QtQuick.Studio.Components library, but I have a problem with the second TimeLine library. I downloaded the full project from GitHub from the link you gave, then I opened the project in QT Creator and built it. https://scr.hu/Rppykwv
          I have pasted the library in the imports folder https://scr.hu/822k4aN
          then I added a header to my qml file
        QtQuick.TimeLine import 1.0
        Unfortunately, he does not recognize the library :(
        https://scr.hu/PYYPk2m
        https://scr.hu/944vMMe

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Thomas Hartmann
          wrote on last edited by Thomas Hartmann
          #4

          @MonoFox said in Problem with build in Design Studio:

          I have pasted the library in the imports folder https://scr.hu/822k4aN

          This should work, but I would suggest to install the timeline with (n)make install. This will install the timeline plugin into your Qt installation like all the other QML plugins. Make also sure you build and install the timeline plugin with the correct version of Qt that you are building your application with.

          The Qt Quick Designer of Qt Creator does not support the timeline at this point in time.

          MonoFoxM 1 Reply Last reply
          2
          • T Thomas Hartmann

            @MonoFox said in Problem with build in Design Studio:

            I have pasted the library in the imports folder https://scr.hu/822k4aN

            This should work, but I would suggest to install the timeline with (n)make install. This will install the timeline plugin into your Qt installation like all the other QML plugins. Make also sure you build and install the timeline plugin with the correct version of Qt that you are building your application with.

            The Qt Quick Designer of Qt Creator does not support the timeline at this point in time.

            MonoFoxM Offline
            MonoFoxM Offline
            MonoFox
            wrote on last edited by MonoFox
            #5

            @Thomas-Hartmann
            I've trying again. This time I downloaded qt 5.12 and I tried again. Maybe there is some progress, maybe not, but there are new mistakes, so that's something! I created a new clean project with the arc item and timeline for tests, I added the compiled timeline to the imports folder and this time I have such results:
            https://scr.hu/RppzaWn

            Errors during build Timeline:
            https://scr.hu/wDDrOP9
            https://scr.hu/944nRa1

            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