PDA

View Full Version : read QTextBrowser line by line



navid
27th February 2010, 16:54
hello,

how can I read QTextBrowser line by line?

regards
navid

pitonyak
1st March 2010, 15:05
The best that I can figure, is that you extract ALL of the text using the plainText property (see http://qt.nokia.com/doc/4.6/qtextedit.html#plainText-prop), and then drop this into say a QTextStream. Something like this totally untested code:

QString s = edit.plainText;
QTextStream is(&s);
Now, read text line by line from the text stream.