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 straightforward).<div>

<br></div><div>roop.<br><br><div class="gmail_quote">On Thu, Mar 8, 2012 at 2:47 PM, Graham Labdon <span dir="ltr"><<a href="mailto:Graham.Labdon@avalonsciences.com">Graham.Labdon@avalonsciences.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p>Hello,<br>
As part of my application I need to provide a document editor that allows the use of heading levels, for example<br>
<strong>1 Heading 1</strong><br>
<strong>1.1 Heading 1.1</strong><br>
etc.<br>
I’m not looking for someone to provide a complete solution but would appreciate some hints on how best to achieve this<u></u><u></u></p>
<p>Thanks<u></u><u></u></p>
</div>
</div>

<br>_______________________________________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/interest" target="_blank">http://lists.qt-project.org/mailman/listinfo/interest</a><br>
<br></blockquote></div><br></div>