The Qt 5.0 provides a new QWindow class. While the documentation on this class is quite comprehensive, I am failing to see how exactly the QWindow is different from the QWidget class, and in which cases you would prefer the former. Both provide a handy way of visualising all sorts of things to the screen, both can use QPainter for drawing, and both have a way to interact with OpenGL.
In the API description, it says that:
An application will typically use QWidget or QQuickView for its UI, and not QWindow directly.
So that doesn't seem to be an advantage for the window. Moreover, it states:
Windows can potentially use a lot of memory. A usual measurement is width times height times color depth. A window might also include multiple buffers to support double and triple buffering, as well as depth and stencil buffers.
Which doesn't seem to be in favour of using the QWindow. So in what cases would you use it?