From a9c3013e9f07c772719bac2557e98d101073fedc Mon Sep 17 00:00:00 2001 From: liuminghang Date: Thu, 24 Jun 2021 16:54:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3bug84995?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description: 接入一指滑动事件 Log: 与触摸屏有关 Bug: https://pms.uniontech.com/zentao/bug-view-84995.html Change-Id: I62a9480cb25f5101c55fc843de4b7cfcdd1153fc --- src/resulttextview.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/resulttextview.cpp b/src/resulttextview.cpp index 5a832f8..88908f0 100644 --- a/src/resulttextview.cpp +++ b/src/resulttextview.cpp @@ -1,10 +1,13 @@ #include "resulttextview.h" #include +#include ResultTextView::ResultTextView(QWidget *parent) : m_Menu(nullptr), m_actCopy(nullptr), m_actCut(nullptr), m_actSelectAll(nullptr) { Q_UNUSED(parent) + //鼠标滑动事件接入 + QScroller::grabGesture(this->viewport(), QScroller::ScrollerGestureType::TouchGesture); m_Menu = new QMenu(this); m_actCopy = new QAction(this); m_actCopy->setText(tr("Copy"));