Transfering QTextDocument's contents to another



  • Hi,

    I want to transfer all the contents of a QTextDocument to another, including all the existing resources.

    Any idea ?

    Thanks.



  • QTextDocument::clone

    Might that be what you want??



  • I'm not trying to clone the document but to insert all its content into another.
    For example :
    Let's assume that the first document is structured as follow :
    @
    <Document1>
    <RootFrame1>
    <Block1 />
    <Frame1 />
    <Table1/>
    <Frame2 />
    <Block2 />
    ...
    </Document1>
    @

    and the second one :
    @
    <Document2>
    <RootFrame2>
    HERE WILL INSERT ALL THE CONTENT OF THE FIRST DOCUMENT
    </Document2>
    @

    After transfering contents, the second document shall look like :
    @
    <Document2>
    <RootFrame2>
    <Document1>
    <RootFrame1>
    <Block1 />
    <Frame1 />
    <Table1/>
    <Frame2 />
    <Block2 />
    ...
    </Document1>
    </Document2>
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.