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