GENIVI / CANdevStudio

Development tool for CAN bus simulation
Mozilla Public License 2.0
939 stars 253 forks source link

Not able to use QML-Executor block #242

Open vardhmanpatil opened 1 year ago

vardhmanpatil commented 1 year ago

Hi ,

Step 1] I am able to load .dbc file under CanSignaldata and using CanSignalSender sending messages and same observed on virtual bus till it is working fine. (Using standalone version)

Step 2] ]Next step is I need to use QML executor block. I just take QML executor block and triying to load .qml file but its not working .

I don't know how to use it pls share any suggestion/guidance/ or any helpful design document dam stuck here

Pls find below Image that I did sample project.. https://user-images.githubusercontent.com/122876509/212884486-71a91aac-64f5-4c80-b520-f62f8e1ebcaa.png

Note -: This is not an issue this is query I have raised under this tab.

rkollataj commented 1 year ago

Hi @vardhmanpatil. Have you tried to load sample qmls? https://github.com/GENIVI/CANdevStudio/tree/master/src/components/qmlexecutor/examples

What Qt version and system are you using?

vardhmanpatil commented 1 year ago

Hi , Qt Creator 9.0.1 ( commuinity) version I used. Yes. I tried to to load sample .qml file mentioned in above link. I am facing below isssues.

https://user-images.githubusercontent.com/122876509/213087746-8ce92323-026f-4428-af94-1de316696b9f.png

bomm commented 10 months ago

I just unpacked the standalone version CANdevStudio-1.2.2-Windows-standalone.7z and get similar error messages (with directory paths matching the location of the file sample.qml on my PC).

I did not install anything related to Qt.

OS is Edition Windows 10 Enterprise Version 22H2 Installed on ‎04.‎12.‎2023 OS build 19045.3803 Experience Windows Feature Experience Pack 1000.19053.1000.0

According to https://stackoverflow.com/questions/35195687/proper-way-to-deploy-qml-applications-on-windows and https://doc.qt.io/qt-5/windows-deployment.html there is a tool windeployqt with a --qmldir argument which would scan QML files inside the directory for QML import dependencies and copy identified dependencies to the executable's directory.

If this tool is used for creating the Windows standalone package, it might be necessary to add a sample QML file which imports all dependencies that might ever be needed by a QMLExecutor block.

p-r-m-n commented 1 week ago

i managed to make the qmlexecutor work with the "simple_forwarder.qml" file simply by adding "import QtQml 2.0" below the "import QtQuick 2.0" in the qml file used.