UN-GCPDS / qt-material

Material inspired stylesheet for PySide2, PySide6, PyQt5 and PyQt6
https://qt-material.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
2.4k stars 254 forks source link

Input controls inside groupbox #45

Closed pstavirs closed 2 years ago

pstavirs commented 2 years ago

The background color of input controls and groupbox is same, so they merge together. The bottom border helps to identify the input controls though. Here's an example - Capture

I'm wondering if a groupbox should just be rendered with a border and not change the background color? I think material uses divider lines rather than boxes to group/separate content. Although that could be an option, it will likely not work in all cases - e.g. how to distinguish whether to use a vertical or horizontal divider? Top/Bottom? Left/Right?

Would it be better to render QGroupBox as a material card?

This is not really a bug, but a question of aesthetics, so I thought I'd open an issue to know your views

YeisonCardona commented 2 years ago

Hi @pstavirs

I really like how looks without a different background color and just a border:

Peek 2021-12-21 19-27

I will keep this look by default and the alternate background color with: my_qgroupbox.setProperty('class', 'fill_background')