Hello,


I have a QTextEdit in which I want to put some QWidgets (for example, buttons, combo box, tab widget, etc...). My idea was to reimplement QTextCursor, QTextEdit, QTextDocument and QTextFrame in order to use a 'QTextWidget' class (derived from QTextFrame I have to create for this to work), or something like that; this class QTextWidget would simply be a container which can return a html string to describe the contained widget (string choosen by the programmer), so this class could be used in conjonction with a modified QTextCursor. But it appears to be very heavy...

Have you other ideas ?

In the case this idea is not bad, I have several questions :
-which methods I should reimplement in QTextCursor and QTextDocument for this to work?
-how to draw widgets when they're in a QTextWidget ? I've seen no drawing methods in QTextObject...

Thank you in advance,

Dartib