I’m working on adding Markdown and HTML support for the Texts module. This module works on vtkMRMLTextNode
nodes. If I change such a node outside the Texts module GUI by adding an attribute using the Data module or programmatically, the changes are not reflected in qMRMLTextWidget
; the function qMRMLTextWidget::updateWidgetFromMRML()
is never called. Is this a bug?
vtkMRMLNode::SetAttribute()
should fire a ModifiedEvent
according to documentation. But how do qSlicerTextsModuleWidget
and qMRMLTextWidget
observe these events?