[Qt-interest] Find block with differents formats inside QTextEdit

Brad Hards bradh at frogmouth.net
Sun Oct 24 06:19:11 CEST 2010


On Sunday, October 24, 2010 03:00:39 pm Josinei Silva wrote:
> How i can get block by text format?
This is a bit difficult to answer without knowing what you've actually tried 
(and what went wrong) but I think you probably just want to iterate over the 
QTextEdit::document() using a QTextCursor. The documentation for QTextCursor 
(http://doc.qt.nokia.com/latest/qtextcursor.html) explains text blocks and 
text format much better than I could.

HTH

Brad



More information about the Qt-interest-old mailing list