Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-42572

Qt::WA_PaintOnScreen does not switch on Qt::WA_NativeWindow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.3.2, 5.4.0 Beta
    • None
    • Windows 7

    Description

      Our documentation states that Qt::WA_PaintOnScreen will also enable Qt::WA_NativeWindow. This is written out under "Native Widgets vs Alien Widgets" here: http://qt-project.org/doc/qt-5/qwidget.html

      However, this does not actually seem to happen automatically. I have to separately enable Qt::WA_NativeWindow.

      In my case I have also reimplemented QWidget::paintEngine to return Q_NULLPTR as I needed native (DirectX) painting - I am not certain whether that should affect these widget attributes. Without Qt::WA_NativeWindow enabled explicitly in addition to Qt::WA_PaintOnScreen the widget always displays as all black.

      My understanding is that for native painting enabling Qt::WA_PaintOnScreen and returning Q_NULLPTR from QWidget::paintEngine should be enough.

      Attachments

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              louai Louai Al-Khanji
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: