What is there involved in adding emoji support for a Qt application? Has anyone done it? Any lessons learnt?
I see that shipping an emoji-calable font is part of a requirement, like Google Chrome does it on Windows - and adding a way to enter emoji characters is another, as native keyboards don't support them yet.
This is only in the context of the desktop of a QWidgets application.
What is there involved in adding emoji support for a Qt application?
Nothing. QString supports unicode so emojis are supported. You might want to set the emoji font in QTextEdit to make them look better but that's it
To make them look relatively acceptable, yeah... plus some way for the user to actually enter them other than copy/pasting. That's what I can think of right now - if anyone actually implemented decent emoji support in their app, would love to hear your input.
To make them look relatively acceptable
plus some way for the user to actually enter them
You'll have to implement a "virtual keyboard" like a floating QTableView displaying the emoji and adding them to the text once they are clicked like most mobile apps do
Sounds good, thanks!