删除connect
QObject *pContext = new QObject(this);
connect(m_mainWindow, &MainWindow::setFpgaSuccess, pContext, [pContext, pLoadingWidget] {
pLoadingWidget->deleteLater();
delete pContext;
});
删除connect
QObject *pContext = new QObject(this);
connect(m_mainWindow, &MainWindow::setFpgaSuccess, pContext, [pContext, pLoadingWidget] {
pLoadingWidget->deleteLater();
delete pContext;
});