wip
This commit is contained in:
@@ -38,12 +38,16 @@ public:
|
|||||||
|
|
||||||
QVBoxLayout *mainLayout = new QVBoxLayout(this);
|
QVBoxLayout *mainLayout = new QVBoxLayout(this);
|
||||||
this->setLayout(mainLayout);
|
this->setLayout(mainLayout);
|
||||||
this->show();
|
|
||||||
|
|
||||||
QTimer::singleShot(2000, [&]() {
|
WebViewFrame *webViewFrame = nullptr; // Declare pointer but do not initialize
|
||||||
WebViewFrame *webViewFrame = new WebViewFrame(this);
|
|
||||||
|
QTimer::singleShot(2000, this, [=, &webViewFrame]() mutable {
|
||||||
|
webViewFrame = new WebViewFrame(this); // Initialize here
|
||||||
mainLayout->addWidget(webViewFrame);
|
mainLayout->addWidget(webViewFrame);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this->show();
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user