How to remove blue border in windows 10?
-
I creat mainWindow widget and it have 1px border around widget in windows 10. How i can delete it?
I found solution!
in .pro
QT += winextrasin .cpp
#include <QtWin>
QtWin::extendFrameIntoClientArea(this,-1,-1,-1,-1); -
Hi
That is the OS frame/decoration. (not drawn by Qt but the OS)
You can disable it withQt::WindowFlags flags = this->windowFlags(); this->setWindowFlags(flags|Qt::FramelessWindowHint);
However, you loose move and resize functionality.