Results 1 to 1 of 1

Thread: copying text from qtextbrowser

  1. #1

    Default Re: copying text from qtextbrowser

    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...

    Qt Code:
    1. class TextBrowser : public QTextBrowser {
    2. Q_OBJECT
    3.  
    4. public slots:
    5. void copy(){}
    6.  
    7. public:
    8. TextBrowser(QWidget *parent = 0);
    9. ~TextBrowser();
    10. };
    To copy to clipboard, switch view to plain text mode 

    caused it not to copy colors and sizes but it does still copy..
    going to be any adverse effects doing this?
    Last edited by user14921; 6th December 2011 at 23:07.

Similar Threads

  1. Replies: 1
    Last Post: 6th December 2011, 22:44
  2. Replies: 1
    Last Post: 30th May 2011, 15:22
  3. Copying QList
    By frenk_castle in forum Newbie
    Replies: 3
    Last Post: 27th November 2009, 00:48
  4. Replies: 1
    Last Post: 5th August 2008, 20:44
  5. Replies: 3
    Last Post: 13th December 2007, 16:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.