Skip to content

Commit 4037417

Browse files
Added Style documentation section to user-guide.md
1 parent 516465a commit 4037417

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

doc/user-guide.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
- [`FloatingContainerHasWidgetTitle`](#floatingcontainerhaswidgettitle)
2424
- [`FloatingContainerHasWidgetIcon`](#floatingcontainerhaswidgeticon)
2525
- [`HideSingleCentralWidgetTitleBar`](#hidesinglecentralwidgettitlebar)
26+
- [Styling](#styling)
27+
- [Disabling the Internal Style Sheet](#disabling-the-internal-style-sheet)
2628

2729
## Configuration Flags
2830

@@ -297,3 +299,19 @@ still has a titlebar to drag it out of the main window.
297299

298300
![HideSingleCentralWidgetTitleBar false](cfg_flag_HideSingleCentralWidgetTitleBar_false.png)
299301

302+
## Styling
303+
304+
The Advanced Docking System supports styling via [Qt Style Sheets](https://doc.qt.io/qt-5/stylesheet.html). All components like like splitters, tabs, buttons, titlebar and
305+
icons are styleable this way.
306+
307+
### Disabling the Internal Style Sheet
308+
309+
The dock manager uses an internal stylesheet to style its components. That
310+
means, the style that you see in the demo application comes from the
311+
internal stylesheets that you will find in `src/stylesheets` folder. If you want
312+
to disable this internal stylesheet because your application uses its own,
313+
just call the function for settings the stylesheet with an empty string.
314+
315+
```c++
316+
DockManager->setStyleSheet("");
317+
```

0 commit comments

Comments
 (0)