Update rasterwindow example to not create() in the constructor

QBackingStore should be able to handle a non-created QWindow just fine.

Change-Id: I42299aa0e985422e1fe4279c1385b9979d267a47
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Tor Arne Vestbø 2017-04-20 14:14:03 +02:00
parent 031e0f4364
commit 9cad7b6eac

View File

@ -53,12 +53,9 @@
//! [1]
RasterWindow::RasterWindow(QWindow *parent)
: QWindow(parent)
, m_backingStore(new QBackingStore(this))
{
create();
m_backingStore = new QBackingStore(this);
setGeometry(100, 100, 300, 200);
}
//! [1]