Try going through what is said in the "Rendering" section of QDirectPainter docs (namely going through QScreen::base()).