QTextEdit + paste rich text as plain text only
hello,
when using QTextEdit the paste() inserts every format supported by the rich-text.
How to make that when pasting it is inserted only plain text if available in clipboard ? or if there is rich-text in clipboard to convert it plain text and after that to paste it.
thanks
Re: QTextEdit + paste rich text as plain text only
the answer was quite easy, sorry for that.
Code:
{
void QTextEdit::insertPlainText ( source
->text
() );
}
Re: QTextEdit + paste rich text as plain text only
I guess you could have adjusted QTextEdit::acceptRichText as well.