Important: Please read the Qt Code of Conduct -

part of Application is not rendered when using Environment Variable QT_XCB_NATIVE_PAINTING with QT 5.11.1

  • Hello guys,
    I am using QT 5.11.1 and written a wrapper for GUI part of my application in QT.
    All the Functionalities like Pan, zoom In, zoom out etc works fine albeit a little slow.
    I have heard that In QT 5.11.1 native rendering can be enabled by Environment variable
    QT_XCB_NATIVE_PAINTING. So when i use this environment all the Functionalities like Pan, zoom In, zoom out etc becomes fast, but some portion of the application is not rendered.
    I have attached screenshot of my application in which the area in black is not rendered.!
    Thanks in advance.

  • I think this is a bug in QPainter::drawPixmap that places the offscreen QPixmap onto the wrong location. The black area is pretty much the same height as the sum of the height of the menubar + toolbar. I assume a problem in


  • Lifetime Qt Champion

Log in to reply