zhiyiYo / PyQt-Fluent-Widgets

A fluent design widgets library based on C++ Qt/PyQt/PySide. Make Qt Great Again.
https://qfluentwidgets.com
GNU General Public License v3.0
5.49k stars 523 forks source link

[Improvement] Add control argument for setting card background. #899

Closed kaka1909 closed 3 months ago

kaka1909 commented 3 months ago

The project is really AWESOME.

When I'm using the setting card, I found I am unable to control the background of setting card unless I modify the paintEvent of the base class - "SettingCard" like below:

image

to get the expected effect like below:

image

Can you provide a control argument to toggle the behavior?

kaka1909 commented 3 months ago

目前的解决办法是,继承 XXSettingCard 然后把 paintEvent 给覆写了。即默认为无背景。