Hi,

people from the other post say: use the QTextObjectInterface and i have try it. I can paint the RadioButton but there is without any function. How i get the button working e.g. checked with a mouseclick?

Thats my try:
Qt Code:
  1. void SvgTextObject::drawObject(QPainter *painter, const QRectF &rect,
  2. QTextDocument * /*doc*/, int /*posInDocument*/,
  3. const QTextFormat &format)
  4. {
  5. option.rect = rect.toRect();
  6. option.state = QStyle::State_On;
  7. QApplication::style()->drawControl(QStyle::CE_RadioButton, &option, painter);
  8. }
To copy to clipboard, switch view to plain text mode 
and the RadioButton looks deactivated.