It applies to all objects using QTextDocument, probably including QGraphicsTextItem.
Did you try:My problem is that I would like to render some text in a scene, but have it be centered instead of left-justified (seems to be the default). Here's an example of the text I'd like to display:
The displayed text shows up with the appropriate line breaks, but it isn't centered. Any help is very much appreciated.Qt Code:
setHTML(text);To copy to clipboard, switch view to plain text mode![]()
Qt Code:
To copy to clipboard, switch view to plain text mode
Maybe QTextDocument supports it...
Bookmarks