PyQt4. QTextEdit. How I can overload copy()?
Hi all.
Can anybody help with next problem. I trying to overload "copy()" method of QTextEdit, but it doesn't work.
Code:
def __init__(self, *args):
def copy(self):
print "copy"
But after execution when I copy text from my QTextEdit console still empty. Why?
Re: PyQt4. QTextEdit. How I can overload copy()?
because this slot is not virtual.
Re: PyQt4. QTextEdit. How I can overload copy()?
Hmm... if I want do any additional actions when users copy text from qtextedit, how I can release this?
Re: PyQt4. QTextEdit. How I can overload copy()?
I don't know what do you want to achive, but take a look at this signal QTextEdit::copyAvailable.
Re: PyQt4. QTextEdit. How I can overload copy()?
This is not exactly solution... but thanks, will think about it.