[PyQt] Getting length of QTextEdit without calling w.toPlainText
Vicent Mas
uvemas at gmail.com
Mon Nov 3 17:22:59 GMT 2008
Hi,
I suppose you can use the QTextCursor, move it to the end of your document and
then call its position method (but I haven't tested it).
Hope it helps.
El Monday 03 November 2008 Edward K. Ream escribió:
> It there a way to get the length of the text in a QTextEdit without
> calling w.toPlainText()?
>
> Something like w.textLength() would substantially reduce the number of
> allocated strings in my app.
>
> Thanks.
>
> Edward
> --------------------------------------------------------------------
> Edward K. Ream email: edreamleo at gmail.com
> Leo: http://webpages.charter.net/edreamleo/front.html
> --------------------------------------------------------------------
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
--
::
Share what you know, learn what you don't
More information about the PyQt
mailing list