qwindowkit
qwindowkit copied to clipboard
Cross-platform frameless window framework for Qt. Support Windows, macOS, Linux.
In order for macOS windows to display buttons properly, we can't hide macOS native buttons, otherwise the title bar will appear on top of the buttons. The easiest manual solution...
`/usr/bin/ld: /media/data/devel/deps/qwindowkit/out_qt6.6.1/share/QWindowKit/qmake/../../../lib/libQWKQuick.a(quickwindowagent.cpp.o): in function `QWK::QuickWindowAgentPrivate::QuickWindowAgentPrivate()': quickwindowagent.cpp:(.text+0x49): undefined reference to `QWK::WindowAgentBasePrivate::WindowAgentBasePrivate()' /usr/bin/ld: /media/data/devel/deps/qwindowkit/out_qt6.6.1/share/QWindowKit/qmake/../../../lib/libQWKQuick.a(quickwindowagent.cpp.o): in function `QWK::QuickWindowAgent::setup(QQuickWindow*)': quickwindowagent.cpp:(.text+0x102): undefined reference to `QWK::WindowAgentBasePrivate::setup(QObject*, QWK::WindowItemDelegate*)' /usr/bin/ld: /media/data/devel/deps/qwindowkit/out_qt6.6.1/share/QWindowKit/qmake/../../../lib/libQWKQuick.a(quickwindowagent.cpp.o): in function `QWK::QuickWindowAgent::setTitleBar(QQuickItem*)': quickwindowagent.cpp:(.text+0x169): undefined reference to...
 使用的qt 5.15.13测试,显示窗口时会比默认设置的高31,拖动窗口后会恢复到设置的数值
生成 Win32 平台的工程文件命令如下: cmake -B build_win32_release -S . -G "Visual Studio 17 2022" -A Win32 -DCMAKE_PREFIX_PATH="C:/Qt/Qt5.12.5/5.12.5/msvc2017/lib/cmake/Qt5" 报错: -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.16299. -- The CXX...
在代码中调用winId()函数来获取某些窗口句柄;会出现一个现象:首先最小化窗口(窗口默认最大化),然后恢复窗口,窗口就会发生错位。  如果窗口处于普通模式(非最大最小化),最小化窗口,然后恢复,则不会出现这种现象。
  这个异常发生在win32windowcontext.cpp的346行。我暂时是把这句注释掉了,这样就不会抛异常,但不知道会不会有其它问题。
I'm trying to link to QWindowsKit for a QtQuick project and I modified the project's cmake file to find the package. I successfully built and installed the QWindowsKit library and...
原来Frameless-Less可以通过Global::kSysMenuDisableXXXVar这几个属性配合WindowsFlag的Qt::WindowXXXHint的值屏蔽系统标题栏右键菜单最大化,最小化入口。QWindowKit目前没有该接口。 Qt:5.15.9
auto dwmBlurAction = new QAction(tr("Enable DWM blur"), menuBar); dwmBlurAction->setCheckable(true); connect(dwmBlurAction, &QAction::toggled, this, [this](bool checked) { QDialog dlg(this); auto agent = new QWK::WidgetWindowAgent(&dlg); agent->setup(&dlg); dlg.exec(); return; if (!windowAgent->setWindowAttribute(QStringLiteral("dwm-blur"), checked)) { return;...
Windows 7和Kylin系统没有阴影和边框,目前我是通过一个像素的灰色border,作为边框。像Kylin系统目前我是通过“Utils::isCustomDecorationSupported()”接口判断当前Linux系统是否支持阴影边框,来决定是否提供一个像素的边框。新版本QWidnowKit目前没有该接口。 Qt:5.15.9