View Full Version : copying text from qtextbrowser

7th December 2011, 00:02
how to disable the copying of html tags from qtextbrowser?
right now if i copy colored text the color stays if i paste inside the same qtextbrowser.want all copied text to have no formatting.

Added after 15 minutes:

ok nevermind, dont know if i fixed this corrertly but doing this...

class TextBrowser : public QTextBrowser {

public slots:
void copy(){}

TextBrowser(QWidget *parent = 0);

caused it not to copy colors and sizes but it does still copy.. :confused:
going to be any adverse effects doing this?