You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finally, I was able to run simple single-qml-file example. But project has poor documentation.
Next step is to run more complex example with couple of linked qmls.
So, I need to import custom classes from other qml-file to my main.qml. Unfortunately I'm beginner in both nodejs and qt development and cannot imagine what should be done.
I tried:
create ./buttons subfolder and place here RadioButton.qml
include it from main.qml: import "buttons" as ButtonQML
browser filed to load ./buttons/qmldir , so I had to create qmldir file with RadioButton 1.0 RadioButton.qml
now browser loads qmldir, but fails to load ~/qml/RadioButton.qml while it's placed near the qmldir ( ~/qml/buttons/RadioBurron.qml)
I cannot understand why library looked for qmldir while qtcreator imports files without it, which is correct way to define filelist to be loaded and how to refer this files from my main.qml. I suppose it should be some "project" file like qml.qrc file for qlcreator, but I was not able to find any information or example.
Could you please correct me if I'm wrong and provide some hints, links or thought directions to achieve required result?
The text was updated successfully, but these errors were encountered:
Also, I want ApplicationWindow and some other QtQuick controls to be fully implemented as well as QtQuick.Controls.Styles module. Can you give key points how to perform this work?
Finally I've found an example in ~/tests/QMLEngine/basepath folder and it works with both embed and fullpage examples. "as" keyword is also works fine, so I still be confused what I'd been done wrong.
I think it would be fine to add extended example.
One another proposition is to mention CONTRIBUTING file in the README.md (It took couple of days to find and read this doc and understand what's going on here)
Finally, I was able to run simple single-qml-file example. But project has poor documentation.
Next step is to run more complex example with couple of linked qmls.
So, I need to import custom classes from other qml-file to my main.qml. Unfortunately I'm beginner in both nodejs and qt development and cannot imagine what should be done.
I tried:
import "buttons" as ButtonQML
RadioButton 1.0 RadioButton.qml
I cannot understand why library looked for qmldir while qtcreator imports files without it, which is correct way to define filelist to be loaded and how to refer this files from my main.qml. I suppose it should be some "project" file like qml.qrc file for qlcreator, but I was not able to find any information or example.
Could you please correct me if I'm wrong and provide some hints, links or thought directions to achieve required result?
The text was updated successfully, but these errors were encountered: