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 制作无边框窗口


基础教程推荐
- 调用std::Package_TASK::Get_Future()时可能出现争用情况 2022-12-17
- 什么是T&&(双与号)在 C++11 中是什么意思? 2022-11-04
- 如何定义双括号/双迭代器运算符,类似于向量的向量? 2022-01-01
- C++,'if' 表达式中的变量声明 2021-01-01
- 设计字符串本地化的最佳方法 2022-01-01
- 您如何将 CreateThread 用于属于类成员的函数? 2021-01-01
- C++ 标准:取消引用 NULL 指针以获取引用? 2021-01-01
- C++ 程序在执行 std::string 分配时总是崩溃 2022-01-01
- 如何在 C++ 中处理或避免堆栈溢出 2022-01-01
- 运算符重载的基本规则和习语是什么? 2022-10-31