Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to use QML-Executor block #242

Open
vardhmanpatil opened this issue Jan 17, 2023 · 4 comments
Open

Not able to use QML-Executor block #242

vardhmanpatil opened this issue Jan 17, 2023 · 4 comments

Comments

@vardhmanpatil
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link

bomm commented Jan 9, 2024

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
Copy link

p-r-m-n commented Nov 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants