PDA

View Full Version : copying text from qtextbrowser



user14921
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 {
Q_OBJECT

public slots:
void copy(){}

public:
TextBrowser(QWidget *parent = 0);
~TextBrowser();
};

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