mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 15:41:34 +08:00
Added Style documentation section to user-guide.md
This commit is contained in:
parent
516465aefb
commit
40374178c9
@ -23,6 +23,8 @@
|
|||||||
- [`FloatingContainerHasWidgetTitle`](#floatingcontainerhaswidgettitle)
|
- [`FloatingContainerHasWidgetTitle`](#floatingcontainerhaswidgettitle)
|
||||||
- [`FloatingContainerHasWidgetIcon`](#floatingcontainerhaswidgeticon)
|
- [`FloatingContainerHasWidgetIcon`](#floatingcontainerhaswidgeticon)
|
||||||
- [`HideSingleCentralWidgetTitleBar`](#hidesinglecentralwidgettitlebar)
|
- [`HideSingleCentralWidgetTitleBar`](#hidesinglecentralwidgettitlebar)
|
||||||
|
- [Styling](#styling)
|
||||||
|
- [Disabling the Internal Style Sheet](#disabling-the-internal-style-sheet)
|
||||||
|
|
||||||
## Configuration Flags
|
## Configuration Flags
|
||||||
|
|
||||||
@ -297,3 +299,19 @@ still has a titlebar to drag it out of the main window.
|
|||||||
|
|
||||||
![HideSingleCentralWidgetTitleBar false](cfg_flag_HideSingleCentralWidgetTitleBar_false.png)
|
![HideSingleCentralWidgetTitleBar false](cfg_flag_HideSingleCentralWidgetTitleBar_false.png)
|
||||||
|
|
||||||
|
## Styling
|
||||||
|
|
||||||
|
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
|
||||||
|
icons are styleable this way.
|
||||||
|
|
||||||
|
### Disabling the Internal Style Sheet
|
||||||
|
|
||||||
|
The dock manager uses an internal stylesheet to style its components. That
|
||||||
|
means, the style that you see in the demo application comes from the
|
||||||
|
internal stylesheets that you will find in `src/stylesheets` folder. If you want
|
||||||
|
to disable this internal stylesheet because your application uses its own,
|
||||||
|
just call the function for settings the stylesheet with an empty string.
|
||||||
|
|
||||||
|
```c++
|
||||||
|
DockManager->setStyleSheet("");
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user