Giter Site home page Giter Site logo

Comments (8)

wangwenx190 avatar wangwenx190 commented on June 16, 2024

QWK是有意去掉了预置的标题栏的。FramelessHelper原本提供的标题栏,主要是模仿了系统原生的标题栏,对于大多数需要定制标题栏的程序来说,风格应该都是不搭的,所以最终还是要自己制作一个适合自己的标题栏。而不同程序的风格也完全不同,我也没法提供一个万能的标题栏,所以干脆完全交给用户去实现了。QWK和FramelessHelper一样,都是可以设置任意QWidget作为标题栏的,所以你完全可以把你之前的标题栏拿过来用,不必用QWK的东西重新实现。

from qwindowkit.

KangLin avatar KangLin commented on June 16, 2024

我的意思是用qt原来的标题栏。这样才容易移植。如果要重新写个标题栏。工程太大了。
没有办法实现吗?

from qwindowkit.

SineStriker avatar SineStriker commented on June 16, 2024

我的意思是用qt原来的标题栏。这样才容易移植。如果要重新写个标题栏。工程太大了。 没有办法实现吗?

没看懂您的意思,你想用默认标题栏直接不用这个库不就行了吗?

from qwindowkit.

KangLin avatar KangLin commented on June 16, 2024

from qwindowkit.

wangwenx190 avatar wangwenx190 commented on June 16, 2024

重写一个标题栏工作量不会太大吧,实在不行你可以把示例工程里的代码复制过去,里面是有一个简单的标题栏的

from qwindowkit.

KangLin avatar KangLin commented on June 16, 2024

一个窗口的工作量是不大,但一个项目窗口的工作量就很大了!

from qwindowkit.

KangLin avatar KangLin commented on June 16, 2024

FramelessHelper原本提供的标题栏,主要是模仿了系统原生的标题栏,

这个思路有问题。应该是适应当前窗口样式才对。

from qwindowkit.

wangwenx190 avatar wangwenx190 commented on June 16, 2024

标题栏本就不属于这个项目应有的功能,所以为了精简代码我们去掉了也理所应当。大多数类似功能的框架也都是没有提供标题栏的,例如WASDK,WPF的WindowChrome。

况且你项目工作量大跟本项目没有关系,我们没有必要专门为了减轻你的工作量而做出妥协。

from qwindowkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.