How to create the new QTextDocument from existing widgets???
- by Tom
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