for anybody interested in this topic:

a
Qt Code:
  1. QString QmInfoPanelPlugin::domXml() const {
  2. return "<ui language=\"c++\">\n"
  3. " <widget class=\"QmInfoPanel\" name=\"qmInfoPanel\">\n"
  4. " <property name=\"geometry\">\n"
  5. " <rect>\n"
  6. " <x>0</x>\n"
  7. " <y>0</y>\n"
  8. " <width>100</width>\n"
  9. " <height>100</height>\n"
  10. " </rect>\n"
  11. " </property>\n"
  12. " </widget>\n"
  13. " <customwidgets>\n"
  14. " <customwidget>\n"
  15. " <class>QmInfoPanel</class>\n"
  16. " <propertyspecifications>\n"
  17. " <stringpropertyspecification name=\"test\" type=\"richtext\"/>\n"
  18. " </propertyspecifications>\n"
  19. " </customwidget>\n"
  20. " </customwidgets>\n"
  21. "</ui>\n";
  22. }
To copy to clipboard, switch view to plain text mode 
will do the job

Hope it helps

Michael