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:
parent
031e0f4364
commit
9cad7b6eac
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user