2

I am writing a plugin that replaces the text of a composer label based on its itemID.

When I change the text of the label using:

item.setText("Hello World")

the label changes on the composer but the text in the Item Properties panel for the label doesn't, it stays as what it was originally.

If I call item.displayText() before and after I change the label text this returns the correct information.

How do I get the text to change in the Item Properties panel? Using qgis 1.8 and 1.9

1

For reference, this was fixed in QGIS 2.0. Now, calling

item.setText("Hello World")

will automatically update the text in the item properties panel too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.