Giter Site home page Giter Site logo

Comments (11)

zhiyiYo avatar zhiyiYo commented on May 18, 2024

可以描述的清晰点吗,这个断句看的也太难受了,建议加上代码和截图。而且如果你想问的是无边框窗口的问题的话,建议在 PyQt-Frameless-Window 提 issue

from pyqt-fluent-widgets.

ITSweets avatar ITSweets commented on May 18, 2024

在 examples/settings/demo.py 文件的第 63 行加上

self.setStyleSheet("""
QWidget {border-radius: 20px;}
""")

然后运行你就会看到问题了

或者你看这个文章的问题,是一样的 https://blog.csdn.net/qq_36780295/article/details/109805454

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 18, 2024

窗口圆角取决于操作系统,如果你想自定义圆角的话就只能把窗口弄成透明无边框,然后自己加上阴影

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 18, 2024

但是这样做会有很多问题,所以 PyQt-Frameless-Window 没有自定义阴影而是还原了系统窗口本来的样子

from pyqt-fluent-widgets.

ITSweets avatar ITSweets commented on May 18, 2024

是的,这二者是冲突的。所以想来问问作者有什么解决方案。

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 18, 2024

没有很好的解决方案呀,二者本来就是不可调和的

from pyqt-fluent-widgets.

ITSweets avatar ITSweets commented on May 18, 2024

好吧,我会在二者之间进行取舍。还想问一下。在 Linux 和 MacOS 下阴影是如何做到的?Linux 也是系统的 API 吗?

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 18, 2024

Linux 和 MacOS 不用像 Windows 一样调用系统 API 来添加阴影,就算去掉了边框还是会有阴影

from pyqt-fluent-widgets.

ITSweets avatar ITSweets commented on May 18, 2024

所有的 Linux 发行版都是如此吗?Debian 系列的和 Red Hat 系列的。

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 18, 2024

Ubuntu 是这样的,好像 Arch 就不行,具体还是取决于窗口管理器吧

from pyqt-fluent-widgets.

ITSweets avatar ITSweets commented on May 18, 2024

好的,感谢您的回复。

from pyqt-fluent-widgets.

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.