Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
atracsys-jlu opened this issue Feb 9, 2023 · 0 comments

Comments

@atracsys-jlu
Copy link

atracsys-jlu commented Feb 9, 2023

Describe Your Environment

  • QDarkStyle: v2.8.1, v3.1
  • OS: Windows 7, Mageia 8

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 #324

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant