Work in progress
This project' development is not yet complete and API needs to be defined, but quite usable. Contributions are welcome.
Material Widgets for Qt is a C++ widgets library that can be used on any supported operating system, including Android, where usually only QML gives a native appearance.
There are several changes compared to the original repository:
- API changes, with some removals (see below).
- Changed the directory structure, headers are separated from implementation files.
- Material 3.
- Removed all color getters/setters; this version is meant to work via QStyle and palettes, not using stylesheets nor setting colors directly per widget. Custom colors should be prepared in a custom palette instead. The style is not ready, so the palette is fixed to light / dark defaults.
- Code style.
- Qt5/6 support
- Qt Designer plugin, thanks to xuannt88 for the initial work
- Light/Dark color scheme
- Qt5/6 base
- qt6-scxml (QStateMachine)
- CMake
- Qt Linguist Tools
- Git (optional, to pull latest VCS checkouts)
CMAKE_BUILD_TYPE
is usually set to Release
, though None
might be a valid alternative.
CMAKE_INSTALL_PREFIX
has to be set to /usr
on most operating systems.
Using sudo make install
is discouraged, instead use the system package manager where possible.
cmake -B build -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr -W no-dev
cmake --build build --verbose
DESTDIR="$(pwd)/package" cmake --install build
Licensed under the BSD-3-Clause license.