Cross-platform window customization framework for Qt Widgets and Qt Quick.
This project inherited most of FramelessHelper's implementation, with a complete refactoring and upgrading of the architecture.
Component | Requirement | Detailed |
---|---|---|
Qt | >=5.15 | Core, Gui, Widgets, Quick |
Compiler | >=C++17 | MSVC 2019, GCC, Clang |
CMake | >=3.17 | >=3.20 is recommended |
First of all, you're supposed to add the following code in your main
function in a very early stage (MUST before the construction of any Q(Gui|Core)Application
objects).
int main(int argc, char *argv[]) {
#ifdef Q_OS_WINDOWS
qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
#elif defined(Q_OS_MAC)
# if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
qputenv("QT_MAC_WANTS_LAYER", "1");
# endif
#endif
}
TODO
TODO
See examples for more demo use cases.
QWindowKit is licensed under the Apache 2.0 License.