Borderless window in Qt on Windows which supports native features: aero snap, DWM resize and minimization

こ雲淡風輕ζ 提交于 2019-12-04 03:11:09
PKE

I've found a workaround for this problem.

Instead of using Qt main window, i've created a simple WinAPI borderless window, like in this SO discussion. Then i added QWinWidget from QtWinMigrate project, and filled window with it.

As result, main window and resizable edges are handled by WinAPI, and everything inside main window is handled by QWinWidget. And with QWinWidget you can create Qt gui like in any other Qt app.

Here is a small example project on GitHub.

Perhaps this might help you, Windows specific Qt classes WinExtras

http://qt-project.org/doc/qt-5/qtwin.html

http://qt-project.org/doc/qt-5/qtwinextras-module.html

Besides you can use QT Quick 2.0 to design UI similar to WPF

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!