From 58efbe36bba0ece1aebb1b8a67d38af0e242ce24 Mon Sep 17 00:00:00 2001 From: "DESKTOP-450PEFP\\mainc" Date: Fri, 26 Jun 2026 17:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E9=87=8A=E7=BB=93=E8=AE=BA=E5=85=B3?= =?UTF-8?q?=E9=97=ADtabwidget=E7=AA=97=E5=8F=A3=E6=98=AF=E5=90=A6=E8=B5=84?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/customtabwidget.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/logPlus/customtabwidget.cpp b/logPlus/customtabwidget.cpp index 034cb95..e16151b 100644 --- a/logPlus/customtabwidget.cpp +++ b/logPlus/customtabwidget.cpp @@ -115,8 +115,12 @@ void CustomTabWidget::removeTab(int index) QWidget* pWgt = m_pStackedWidget->widget(index); m_pStackedWidget->removeWidget(pWgt); //widget is not deleted but simply removed from the stacked layout, causing it to be hidden. - // 模块插件不释放 - //pWgt->deleteLater(); + MainWindowSplitter* mwinCurve = qobject_cast(pWgt); + if (mwinCurve) + { + // 模块插件不释放 + pWgt->deleteLater(); + } if (m_pTabBar->count() == 0) { emit tabIsEmpty();