Bug report #5862
Updating composer label text via python - problem with Item Properties panel
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||15326|
I am writing a plugin that replaces the text of a composer label based on its itemID. The text in the label says "Original text" in this example.
When I change the text of the label using:
the label changes on the composer but the text in the Item Properties panel for the label doesn't, it stays as "Original text".
If I call item.displayText() before and after I change the label text this returns "Hello World".
How do I get the text to change in the Item Properties panel? Using qgis 1.8 and 1.9
If I save the project and reopen it, it displays the changed text "Hello World".
I have attached a screenshot to demonstrate.