Making a borderless window with for Qt(使用 for Qt 制作无边框窗口)
问题描述
我是 Qt C++ 的新手.我下载了最新的 Windows 版本,做了一些教程,效果很好.
I'm new to Qt C++. I downloaded the latest windows version, did some tutorials and its great.
我看到了 Qt 框架具有的一些样式选项并且它很棒,但是现在我需要构建我的应用程序,它的主窗口(窗体)是它设计的/带有图像的没有矩形边框(无边框?).
I saw some styling options that the Qt framework has and its great, but now I need to build my application that its main windows (form) it designed/skinned with image without the rectangle borders (borderless?).
我如何用 Qt 做到这一点?
How can I do it with Qt?
推荐答案
如果您正在寻找小部件形状的一些高级样式,也许这个例子会对您有所帮助:
If your looking for some advanced styling in the shape of a widget, maybe this example will help you:
异形时钟示例
或者也许您只是在寻找这种标志:Qt::CustomizeWindowHint
或只是 Qt::FramelessWindowHint
.
Or maybe you're simply looking for this kind of flag: Qt::CustomizeWindowHint
or simply Qt::FramelessWindowHint
.
这篇关于使用 for Qt 制作无边框窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 for Qt 制作无边框窗口


- OpenGL 对象的 RAII 包装器 2021-01-01
- 如何提取 __VA_ARGS__? 2022-01-01
- 将 hdc 内容复制到位图 2022-09-04
- 从父 CMakeLists.txt 覆盖 CMake 中的默认选项(...)值 2021-01-01
- XML Schema 到 C++ 类 2022-01-01
- 使用 __stdcall & 调用 DLLVS2013 中的 GetProcAddress() 2021-01-01
- 哪个更快:if (bool) 或 if(int)? 2022-01-01
- 将函数的返回值分配给引用 C++? 2022-01-01
- DoEvents 等效于 C++? 2021-01-01
- GDB 不显示函数名 2022-01-01