In this folder different custom Qt Quick Controls styles are listed.
The controls styles are created following this.
Installing the controls
From source code
git clone https://github.com/EddyTheCo/MyDesigns.git
mkdir build
cd build
qt-cmake -G Ninja -DCMAKE_INSTALL_PREFIX=installDir -DCMAKE_BUILD_TYPE=Release -DQTDEPLOY=OFF -DBUILD_EXAMPLES=OFF -DBUILD_DOCS=OFF ../MyDesigns
cmake --build .
cmake --install . --component FlatControl
where installDir
is the installation path.
From GitHub releases
Download the releases from this repo.
Using the controls in your CMake project
include(FetchContent)
FetchContent_Declare(
EstervDesigns
GIT_REPOSITORY https://github.com/EddyTheCo/MyDesigns.git
GIT_TAG vMAJOR.MINOR.PATCH
FIND_PACKAGE_ARGS MAJOR.MINOR COMPONENTS FlatControl CONFIG
)
FetchContent_MakeAvailable(EstervDesigns)
target_link_libraries(<target> <PRIVATE|PUBLIC|INTERFACE> EstervDesigns::FlatControl
$<$<STREQUAL:$<TARGET_PROPERTY:EstervDesigns::FlatControl,TYPE>,STATIC_LIBRARY>:EstervDesigns::FlatControlplugin>
)
Using the controls
One needs to make available to the QML engine the Esterv.Controls.Flat
module by setting the QML import path.
- In your main function
engine.addImportPath("qrc:/esterVtech.com/imports");
to use the resource file.
- Set the environment variable like
export QML_IMPORT_PATH=installDir/CMAKE_INSTALL_LIBDIR
where CMAKE_INSTALL_LIBDIR
is where Esterv
folder was created.
Then select the style of your application like ./yourApp -style Esterv.Controls.Flat