Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to set QTextEdit text stylesheet like this?
Masonsu last edited by A Former User
hello, everyone. I want to set QTextEdit text like this，I mean the bubble of the text, since I have already set alignment ,how can I achieve this , use stylesheet? can you give some advice?
VRonin last edited by
Honestly I do not think that's a QTextEdit, it's probably a QListView + a model
Next time, I'd recommend checking what is said in the conversation before posting an excerpt ;)
@Masonsu Definitely not doing that with a QTextEdit.. You will need a custom widget or as mentioned by VRonin you can try using views (QTreeView/QListView) and custom QItemDelegates.
@SGaist LOL! I don't speak french but I had to google translate that after you said that. :)