Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.0.0, 5.4.1
-
Linux - CentOS 6.6
Description
Here is part of the code from QtMultimedia VideoWidget example:
VideoWidget::VideoWidget(QWidget *parent) : QWidget(parent) , surface(0) { setAutoFillBackground(false); setAttribute(Qt::WA_NoSystemBackground, true); setAttribute(Qt::WA_PaintOnScreen, true); QPalette palette = this->palette(); palette.setColor(QPalette::Background, Qt::black); setPalette(palette); setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); surface = new VideoWidgetSurface(this); } void VideoWidget::paintEvent(QPaintEvent *event) { QPainter painter(this); ... }
When WA_PaintOnScreen is set to true, the paintEvent never gets called, in which way it is not suppose to happen. If unset it, the paintEvent gets called.
Attachments
Issue Links
- relates to
-
QTBUG-42572 Qt::WA_PaintOnScreen does not switch on Qt::WA_NativeWindow
- Reported