Add screenshots to issue workarounds.
Added screenshots to demonstrate custom dials, whats this, and title bars.main
parent
34af77c192
commit
c5e548df98
|
@ -41,6 +41,8 @@ There are limitations to what can be styled with stylesheets, as well as rare bu
|
||||||
|
|
||||||
`QDial` cannot be customized via a stylesheet, which is a known bug in [QTBUG-1160](https://bugreports.qt.io/browse/QTBUG-1160). An example of how to style a `QDial` is available in [dial.py](/example/dial.py). This works out-of-the-box, and can be a drop-in replacement for `QDial`.
|
`QDial` cannot be customized via a stylesheet, which is a known bug in [QTBUG-1160](https://bugreports.qt.io/browse/QTBUG-1160). An example of how to style a `QDial` is available in [dial.py](/example/dial.py). This works out-of-the-box, and can be a drop-in replacement for `QDial`.
|
||||||
|
|
||||||
|
<img src="/assets/custom_dial.png" alt="Custom Dial" width="500" height="192"/>
|
||||||
|
|
||||||
# QMdiSubwindow
|
# QMdiSubwindow
|
||||||
|
|
||||||
### Title Bar Icons
|
### Title Bar Icons
|
||||||
|
@ -289,6 +291,8 @@ def main():
|
||||||
return app.exec()
|
return app.exec()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
![Custom Whats This](/assets/custom_whatsthis.png)
|
||||||
|
|
||||||
# QWidget
|
# QWidget
|
||||||
|
|
||||||
### Standard Icons
|
### Standard Icons
|
||||||
|
@ -378,7 +382,7 @@ def main():
|
||||||
|
|
||||||
The system title bar cannot be customized extensively, since it depends on either the application style or the system theme for how it renders. For a comprehensive example on how to create your own, custom title bar, with fully functional minimize, maximize, shade, unshade, context help, keep above, window title, and a context menu, see [titlebar.py](/example/titlebar.py). This is a drop-in replacement for the title bar on `QMdiSubWindow` which also lets you customize the placement of where the windows minimize to, but could also be modified for `QMainWindow` or `QDialog`.
|
The system title bar cannot be customized extensively, since it depends on either the application style or the system theme for how it renders. For a comprehensive example on how to create your own, custom title bar, with fully functional minimize, maximize, shade, unshade, context help, keep above, window title, and a context menu, see [titlebar.py](/example/titlebar.py). This is a drop-in replacement for the title bar on `QMdiSubWindow` which also lets you customize the placement of where the windows minimize to, but could also be modified for `QMainWindow` or `QDialog`.
|
||||||
|
|
||||||
![Custom Titlebar](/assets/custom-titlebar.png)
|
<img src="/assets/custom_titlebar.png" alt="Custom Titlebar" width="500" height="438"/>
|
||||||
|
|
||||||
# QWizard
|
# QWizard
|
||||||
|
|
||||||
|
@ -386,4 +390,4 @@ The system title bar cannot be customized extensively, since it depends on eithe
|
||||||
|
|
||||||
The background color at the top and bottom of a `QWizard` using `QWizard::AeroStyle` uses hard-coded colors for the values above and below the page. These cannot be modified, even with `QPalette`, and the solution is quite simple: use any other style other than `QWizard::AeroStyle`. Other available options include `QWizard::ModernStyle` and `QWizard::MacStyle`.
|
The background color at the top and bottom of a `QWizard` using `QWizard::AeroStyle` uses hard-coded colors for the values above and below the page. These cannot be modified, even with `QPalette`, and the solution is quite simple: use any other style other than `QWizard::AeroStyle`. Other available options include `QWizard::ModernStyle` and `QWizard::MacStyle`.
|
||||||
|
|
||||||
![QWizard Aero Windows](/assets/wizard-aero-windows.png)
|
![QWizard Aero Windows](/assets/wizard_aero_windows.png)
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 126 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
|
@ -272,10 +272,10 @@ class Ui:
|
||||||
MainWindow.resize(1068, 824)
|
MainWindow.resize(1068, 824)
|
||||||
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
||||||
self.centralwidget.setObjectName('centralwidget')
|
self.centralwidget.setObjectName('centralwidget')
|
||||||
self.layout = QtWidgets.QVBoxLayout(self.centralwidget)
|
self.layout = QtWidgets.QHBoxLayout(self.centralwidget)
|
||||||
self.layout.setObjectName('layout')
|
self.layout.setObjectName('layout')
|
||||||
if not args.no_align:
|
if not args.no_align:
|
||||||
self.layout.setAlignment(compat.AlignHCenter)
|
self.layout.setAlignment(compat.AlignVCenter)
|
||||||
MainWindow.setCentralWidget(self.centralwidget)
|
MainWindow.setCentralWidget(self.centralwidget)
|
||||||
|
|
||||||
self.dial1 = Dial(self.centralwidget)
|
self.dial1 = Dial(self.centralwidget)
|
||||||
|
|
Loading…
Reference in New Issue