Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.0
-
None
-
-
d6bdc5e9b (dev), 16d67bcb3 (6.4), b8eeb2d68 (6.5), df8cf211c (tqtc/lts-6.2)
-
DaVinci 74
Description
Hello, on https://doc.qt.io/qt-6/stylesheet-reference.html#list-of-stylable-widgets, in the QWidget cell, one reads
Supports only the background, background-clip and background-origin properties.
If you subclass from QWidget, you need to provide a paintEvent for your custom QWidget as below:
void CustomWidget::paintEvent(QPaintEvent *)
opt.init(this); should read opt.initFrom(this). QStyleOption has no init() member in either Qt5 or Qt6.
Attachments
For Gerrit Dashboard: QTBUG-107770 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
460620,1 | Doc: Fix member name in code snippet | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: NEW | +2 | 0 |
460309,3 | Doc: Fix member name in code snippet | dev | qt/qtbase | Status: MERGED | +2 | 0 |
460591,2 | Doc: Fix member name in code snippet | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
460592,2 | Doc: Fix member name in code snippet | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
460619,2 | Doc: Fix member name in code snippet | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |