Problem with build in Design Studio
-
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.0When 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 ?
-
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.
-
@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 -
@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.
-
@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/RppzaWnErrors during build Timeline:
https://scr.hu/wDDrOP9
https://scr.hu/944nRa1