Skip to content
Discussion options

You must be logged in to vote

In short, QDomDocument::setContent() fails in Qt6 if there is any control character inside the document, while the same function worked fine with those characters in Qt5. Also read https://doc.qt.io/qt-6/xml-changes-qt6.html#control-characters.

The code removes 0x000E, 0x000F, 0x0010 and 0x0011 as a workaround, but searching and removing all control characters isn't an option because it can be expensive.

So, make sure you do not add control characters to your notes! Fortunately, they're very rare and have no real use.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tsujan
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by tsujan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #415 on January 03, 2026 18:42.