OlivierLDff / Qaterial

🧩 Collection of Material Components based on QtQuickControls2.
https://olivierldff.github.io/Qaterial/
MIT License
298 stars 56 forks source link

How can i install to qt's directory qml #94

Closed gersure closed 3 years ago

gersure commented 3 years ago

i want to use in qtcreator, but now can't make it

OlivierLDff commented 3 years ago

I think it is the same as https://github.com/OlivierLDff/Qaterial/issues/78 I don't have time to support that for now, but feel free to pull request. Qaterial should be compiled as a plug-in for that.

What do you mean by use in qtcreator?

ssakone commented 3 years ago

You have to create qt project as cmake in QtCreator first after add this line on your cmakefile after find_package line include(FetchContent) FetchContent_Declare( Qaterial GIT_REPOSITORY https://github.com/OlivierLDff/Qaterial.git GIT_TAG master GIT_SHALLOW 1 ) FetchContent_MakeAvailable(Qaterial) target_link_libraries(... Qaterial) dont forgot to add Qaterial in target_link_libraries,

after follow for the next step instruction here https://olivierldff.github.io/Qaterial/Quickstart.html, if you want to add Qaterial completion and syntax recongnition in QtCreator copy in Qaterial repos qml/Qaterial ---> folder in your qt installation directory like (Qt__path)/version/compiler(msvc2019)/qml