From cc91b550f5ed369622c7a1035055833a7405a47e Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Fri, 7 Aug 2026 08:36:51 +0800 Subject: [PATCH] fix: use SIGNAL/SLOT macro for sigYUVFrame connect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace new-style connect with old-style SIGNAL/SLOT macro syntax for sigYUVFrame signal connection to ensure compatibility. 将sigYUVFrame信号连接从新式函数指针语法改为旧式SIGNAL/SLOT宏语法以确保兼容性。 Log: 修改sigYUVFrame连接方式为SIGNAL/SLOT宏语法 PMS: BUG-372435 Influence: 仅影响YUV帧信号连接方式,功能行为不变。 --- src/src/videowidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/src/videowidget.cpp b/src/src/videowidget.cpp index 96ab54b8..96059df5 100644 --- a/src/src/videowidget.cpp +++ b/src/src/videowidget.cpp @@ -298,8 +298,8 @@ void videowidget::delayInit() connect(m_imgPrcThread, SIGNAL(SendMajorImageProcessing(QImage *, int)), this, SLOT(ReceiveMajorImage(QImage *, int))); connect(m_imgPrcThread, SIGNAL(sigRenderYuv(bool)), this, SLOT(ReceiveOpenGLstatus(bool))); - connect(m_imgPrcThread, &MajorImageProcessingThread::sigYUVFrame, - m_openglwidget, &PreviewOpenglWidget::slotShowYuv, + connect(m_imgPrcThread, SIGNAL(sigYUVFrame(std::shared_ptr,uint,uint)), + m_openglwidget, SLOT(slotShowYuv(std::shared_ptr,uint,uint)), Qt::DirectConnection); }