This is a QtQuick custom style integrated from DTK.
Due to technical limits, till now only components in QtQuick.controls are integrated.
using dtk mainwindow and qquickwidget using QtQuick ApplicationWindow
You can simply open and build the project under example/ via Xmake or in Qt Creator.
The project now uses xmake as build system, you can easily install xmake according to their instructions.
If DTK dependencies is installed, it'll link to dtk's apis, otherwise it'll use mocked dpalette etc. as fallback.
- include
src/include/qtquickdtk.h
in your main.cpp, callenableQtQuickDTKStyle(QQmlEngine*)
before you show the qml widget or window - add the path where
DPalette/
(default built in xmake $buildir) locates to qml import path(byaddImportPath
function orQML2_IMPORT_PATH
env)- this can be done by including
src/dtk.qrc
and add:/
to qml import path
- this can be done by including
- put
libdpalette.so
at shared lib load path
Within three steps you can use dtk-style qml controls!
Or you can only declare the type and include qmldpalette class, import QMLDPalette 1.0
in .qml, write your own components with dtk color style.
Here're Python and C++ examples in examples/
, its xmake.lua
has been included in root dir so you can run xmake [build|run] example-[cpp|python]
under this repo's root dir.