Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What is the simplest way to add emoticons to widget with text?
Forum Updated to NodeBB v4.3 + New Features

What is the simplest way to add emoticons to widget with text?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 475 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TomNow99
    wrote on last edited by
    #1

    Hello,

    I would like to create chat where is the widget, where user will write a text to send. In pro chats that widget looks like QTextEdit. I would like do something like:

    User write text, when that user write ":D" I would like to change it to emoticon which is QImage ( or something like that ). How can I do this?

    Of course I can use other widget to achieve this.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      See e.g. here: https://forum.qt.io/topic/91271/how-to-insert-an-image-on-qtextedit

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      6
      • T Offline
        T Offline
        TomNow99
        wrote on last edited by
        #3

        @Christian-Ehrlicher Perfect. Thank you

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved