Add groupbox borders, reorder Base stylesheet (#810)
- According to https://doc.qt.io/qt-6/stylesheet-reference.html,
paintEvent(QPaintEvent *)
function should be implemented for custom class derived from QWidget
For this I added QssWidget
class which is now base for CollapsibleGroupBox
and StaticGroupBox
. Now stylesheets for these classes work as expected.
-
Some
QGroupBox
used in GUI are replaced withStaticGroupBox
. -
CollapsibleGroupBox
andStaticGroupBox
got borders. -
To ease the navigation and understanding of
Base.stylesheet
, I grouped settings by widget type.
Resolves #810 (closed)
Merge request reports
Activity
requested review from @j.wuttke
assigned to @m.svechnikov
added 20 commits
-
fe78a240...cc7b34c2 - 11 commits from branch
main
- d3016faa - rm header
- 58671540 - add QssWidget
- 72e857fc - use QssWidget for groupboxes
- b1f329a5 - group widgets
- a09a9871 - cleanup groupboxes
- b64c7305 - cleanup includes
- 3fed2361 - QGroupBox --> StaticGroupBox
- 358e7fc4 - add borders
- ed581141 - upd and rebase
Toggle commit list-
fe78a240...cc7b34c2 - 11 commits from branch
- Resolved by Wuttke, Joachim
How did you order classes in the stylesheet? Previous order was alphabetical. Not convinced this should be changed again.
What I like about your changes that the transparent background "exceptions" are now moved to the individual widget sections.
mentioned in commit 088f008a
mentioned in merge request !2140 (merged)