I'm trying to paste emoji's in the QT's QTextEdit box but it's not getting recognized and it's showing as ??? or [][]

I'm not talking about smiley, I'm talking about emoji.

How can I go about making sure that QT's QTextEdit accepts emoji and displays them correctly?

Thank you.