Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit bc3576b6 authored by Laurent Montel's avatar Laurent Montel 😁

Show emoticon unicode

parent 877b6243
......@@ -19,9 +19,9 @@
02110-1301, USA.
#include <QApplication>
#include <QLineEdit>
#include <QPushButton>
#include <QWidget>
#include <QVBoxLayout>
#include <QTextEdit>
class Window : public QWidget
......@@ -31,7 +31,16 @@ public:
explicit Window(QWidget *parent = nullptr)
: QWidget(parent)
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QTextEdit *edit = new QTextEdit(this);
QString str;
const QList<uint> lstEmoji{0x1F50E, 0x1F603, 0x1F604, 0x1F601, 0x1F606, 0x1F605}; //Add more
for (uint emoji : lstEmoji) {
str += QString::fromUcs4(&emoji, 1);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment