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 制作无边框窗口
基础教程推荐
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 这个宏可以转换成函数吗? 2022-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 我有静态或动态 boost 库吗? 2021-01-01
- 常量变量在标题中不起作用 2021-01-01
