ColinDuquesnoy / QDarkStyleSheet

A dark style sheet for QtWidgets application
Other
2.76k stars 725 forks source link

Widgets inside a QToolBox are not displayed properly when placed in a QToolBox #328

Open atracsys-jlu opened 1 year ago

atracsys-jlu commented 1 year ago

Describe Your Environment

Language

C++ (Python should be affected as well)

Description / Steps to Reproduce

QTextEdit, QLineEdits and QPushButtons are not distinguished from the background when the container widget is placed in a QToolBox if either the dark or the light mode is used.

Attached is a MWE CMake project that shows the wrong behaviour: TestQDarkStyle.zip

Actual Result and Expected Results / Proposed Result

ExpectedAndActual

The left part shows a widget as expected (circled in orange), whilst the left part (circled in blue) shows another instance of the same widget, this time embedded in a QToolBox. The two widgets are expected to look the same. When using the light mode, the result is similar.

Expected Results / Proposed Result

See previous subsection

Relevant Code

In version v2.8.1 the "offending" code lies in style.qss

In version v3.1, the "offending" code lies in darkstyle.qss and lightstyle.qss

Edit: I just saw now this looks fixed in https://github.com/ColinDuquesnoy/QDarkStyleSheet/pull/324