Reputation: 3657
I'm going to replace some content in QTextBroswer before they pushed to clipboard. So I should reimplement copy()
. But, PyQt doesn't call my overloaded method. What's wrong?
from PyQt4 import QtCore, QtGui
class Label(QtGui.QTextBrowser):
@QtCore.pyqtSlot()
def copy(self):
# Never been called.
print("Called")
Upvotes: 0
Views: 87