[Interest] QTextDocument and heading levels

Roopesh Chander roop at forwardbias.in
Fri Mar 9 16:00:13 CET 2012

You could use a QTextList to keep all headings of a certain level and under
a certain heirarchy. The blocks that we add to a QTextList need not be
consecutive, so it can hold headings/subheadings at a certain level at
different points in the document. However, I think numbering them as 1.1,
1.2, 1.3,... wouldn't be easy (numbering them as 1,2,... is


On Thu, Mar 8, 2012 at 2:47 PM, Graham Labdon <
Graham.Labdon at avalonsciences.com> wrote:

>  Hello,
> As part of my application I need to provide a document editor that allows
> the use of heading levels, for example
> *1 Heading 1*
> *1.1 Heading 1.1*
> etc.
> I’m not looking for someone to provide a complete solution but would
> appreciate some hints on how best to achieve this****
> Thanks****
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120309/9e168430/attachment.html>

More information about the Interest mailing list