На этот раз проблема возникла с перегрузкой copy(). Делаю примерно следующее:
class MyQTextEdit(QtGui.QTextEdit):
...
def copy(self):
QtGui.QTextEdit.copy(self)
print "copy"
void QTextEdit::copyAvailable ( bool yes )Дайте, плиз, направление куда копать?
This signal is emitted when text is selected or de-selected in the text edit.
When text is selected this signal will be emitted with yes set to true. If no text has been selected or if the selected text is de-selected this signal is emitted with yes set to false.
If yes is true then copy() can be used to copy the selection to the clipboard. If yes is false then copy() does nothing.
See also selectionChanged().
void QTextEdit::copy ()
Copies any selected text to the clipboard.
See also copyAvailable().