Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.4.0, 5.4.1, 5.4.2, 5.5.0 Beta
-
None
-
Linux/XCB
-
71c3aab7ba (qt/qtbase/dev) 71c3aab7ba (qt/tqtc-qtbase/dev) f4eb4c5f30 (qt/qtbase/6.4) f4eb4c5f30 (qt/tqtc-qtbase/6.4) bf4517f435 (qt/tqtc-qtbase/6.2) 9caae71cfb (qt/tqtc-qtbase/5.15)
Description
Using QPainter in paintEvent() with attribute Qt::WA_PaintOnScreen doesn't work with Qt5 (works with Qt4).
Console output:
QWidget::paintEngine: Should no longer be called QWidget::paintEngine: Should no longer be called QWidget::paintEngine: Should no longer be called QPainter::begin: Paint device returned engine == 0, type: 1
I know, that I can override paintEngine() and return nullptr and draw using X11 functions, but QPainter is much simpler and faster to use.
Attachments
Issue Links
- relates to
-
QTBUG-100085 xcb: Native window does not get paint event if another window on top of it is hidden unless there is a enter/leave event somewhere
-
- Closed
-
For Gerrit Dashboard: QTBUG-46681 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
438666,10 | xcb: Flush Display when processing xcb events | dev | qt/qtbase | Status: MERGED | +2 | 0 |
441625,2 | xcb: Flush Display when processing xcb events | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
441628,3 | xcb: Flush Display when processing xcb events | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
441629,3 | xcb: Flush Display when processing xcb events | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |