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

Get started is required #434

Open
bessorion opened this issue May 2, 2018 · 2 comments
Open

Get started is required #434

bessorion opened this issue May 2, 2018 · 2 comments

Comments

@bessorion
Copy link
Contributor

bessorion commented May 2, 2018

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?

@bessorion
Copy link
Contributor Author

bessorion commented May 2, 2018

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?

@bessorion
Copy link
Contributor Author

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)

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

1 participant