Skip to content

Conversation

@rcomer
Copy link
Member

@rcomer rcomer commented Nov 21, 2025

PR summary

Fixes #30770. The problem was that set_title restores default styles, so we should only update the string.

No test added per #30770 (comment), but I have run the example code against my branch and verified I can change the title in the gui without its style reverting.

Note that title is initialised as an empty Text object so set_text will work regardless of whether the user previously added a title.

self.title = mtext.Text(
x=0.5, y=y, text='',
fontproperties=props,
verticalalignment='baseline',
horizontalalignment='center',
)

PR checklist

@rcomer rcomer added the PR: bugfix Pull requests that fix identified bugs label Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GUI: Qt PR: bugfix Pull requests that fix identified bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Bug / Inconsistency: Title Format Lost After Interactive Editing

2 participants