How to create the new QTextDocument from existing widgets???

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-04-30T07:32:23Z Indexed on 2010/04/30 7:37 UTC
Read the original article Hit count: 331

Filed under:

Hi,

I'm absolutely confused with how to create the customized QTextDocument. I have the widget QWidget, which consists of some QLabels, QTableWidgets and QWidgets and I want to print it . I decided to create the new QTextDocument and insert in it all the defined widgets. I have already tried QTextCursor->insertBlock and insertText but my problem is how to define QTextBlockFormat or QTextCharFormat and say it, what is its "content", how to insert the widget in it. Can anyone help please? tom

© Stack Overflow or respective owner

Related posts about qtextdocument