Ahh, thank you, I see. It's strange that it didn't then crash when it started as there is the setHTML in the constructor. If there's no associated text document it seems that would have crashed it too.
Ahh, thank you, I see. It's strange that it didn't then crash when it started as there is the setHTML in the constructor. If there's no associated text document it seems that would have crashed it too.
Probably QGraphicsTextItem is implemented with the optional ability to use a QTextDocument, and has a default means to simply use an HTML or simple text string if no document is set.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Thank you for the help. I couldn't find why this was crashing, but I was able to convert it to a simpleTextItem which is sufficient for this particular purpose. I'll have to revisit later, though, because I'll need the more complex one later.
Bookmarks