Comments (8)
QWK是有意去掉了预置的标题栏的。FramelessHelper原本提供的标题栏,主要是模仿了系统原生的标题栏,对于大多数需要定制标题栏的程序来说,风格应该都是不搭的,所以最终还是要自己制作一个适合自己的标题栏。而不同程序的风格也完全不同,我也没法提供一个万能的标题栏,所以干脆完全交给用户去实现了。QWK和FramelessHelper一样,都是可以设置任意QWidget作为标题栏的,所以你完全可以把你之前的标题栏拿过来用,不必用QWK的东西重新实现。
from qwindowkit.
我的意思是用qt原来的标题栏。这样才容易移植。如果要重新写个标题栏。工程太大了。
没有办法实现吗?
from qwindowkit.
我的意思是用qt原来的标题栏。这样才容易移植。如果要重新写个标题栏。工程太大了。 没有办法实现吗?
没看懂您的意思,你想用默认标题栏直接不用这个库不就行了吗?
from qwindowkit.
from qwindowkit.
重写一个标题栏工作量不会太大吧,实在不行你可以把示例工程里的代码复制过去,里面是有一个简单的标题栏的
from qwindowkit.
一个窗口的工作量是不大,但一个项目窗口的工作量就很大了!
from qwindowkit.
FramelessHelper原本提供的标题栏,主要是模仿了系统原生的标题栏,
这个思路有问题。应该是适应当前窗口样式才对。
from qwindowkit.
标题栏本就不属于这个项目应有的功能,所以为了精简代码我们去掉了也理所应当。大多数类似功能的框架也都是没有提供标题栏的,例如WASDK,WPF的WindowChrome。
况且你项目工作量大跟本项目没有关系,我们没有必要专门为了减轻你的工作量而做出妥协。
from qwindowkit.
Related Issues (20)
- linkage error with QWINDOWKIT_BUILD_STATIC=ON HOT 8
- QDialog使用QWK的windowBar无法拖动 HOT 4
- 关闭 最大化 最小化按钮跑到了标题栏左侧 HOT 2
- 能否移除对qmsetup的依赖? HOT 1
- 禁用双击标题栏时切换窗口最大化状态 HOT 7
- menubar下拉菜单遮挡menubar HOT 17
- 请问有计划支持PySide6么? HOT 1
- the border and shadow color is not changed with the theme color, but keep to MS default, which makes it not look nice HOT 5
- `setHitTestVisible`在Qt 5.15.2下会出现重载问题 HOT 4
- feature:example示例友好化 HOT 2
- MinGW编译失败 HOT 5
- example 没有窗口特性 HOT 2
- 很严重的渲染问题 HOT 10
- 基于示例代码添加QGraphicsView,里面显示的QGraphicsItem下半部分区域无法接收鼠标事件 HOT 4
- qml 启用 frameless 后,双击 titlebar 不能最大化窗口 HOT 2
- win10下是否可以不是显示系统边框(左、右、下) HOT 1
- qt_version <= qt5.14 compile error HOT 5
- Win10 QtCreator12 RelWithInfo模式下崩溃 HOT 2
- macOS 扩展屏下,在不同屏幕启动,窗口行为不一致 HOT 1
- 在WindowBar中新增QLineEdit控件后不可用 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qwindowkit.