Как сделать функцию свайпа в PyQt5?

Можно ли как то в PyQt5 сделать функцию свайпа и при её выполнении выполнять действие? Мой код:

from PyQt5 import QtWidgets, QtGui, QtCore
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *

class Button(QPushButton):
    mouseMoved = pyqtSignal()
    def mouseMoveEvent(self, event):
        self.mouseMoved.emit()

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.lbl = QtWidgets.QLabel(self)
        self.pix = QtGui.QPixmap("img.png")
        self.lbl.setPixmap(self.pix)
        self.lbl.resize(216, 325)
        self.lbl.move(470, 1000)
        self.lbl.close()
        self.btn = QPushButton(self)
        self.btn.setMouseTracking(True);
        self.btn.setText("Кнопка")
        self.btn.setStyleSheet("background: pink; color: Black; border-radius: 34px;}")
        self.btn.setFont(QtGui.QFont("Pusia-Bold.otf", 17, QtGui.QFont.Bold))
        self.btn.resize(300, 150)
        self.btn.move(430, 1550)
        self.btn.clicked.connect(self.image)
        self.show()
    def image(self):
        self.lbl.show()

app = QtWidgets.QApplication(sys.argv)
ex = MainWindow()
sys.exit(app.exec_())

Ответы (0 шт):