Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. Emojis und Icons
Qt 6.12 LTS is out! See what's new in the release blog

Emojis und Icons

Scheduled Pinned Locked Moved Solved German
14 Posts 3 Posters 4.1k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Dany
    wrote on last edited by
    #5

    Das klingt in der Tat interessant! Danke!

    1 Reply Last reply
    0
    • D Dany

      Okay und wie setze ich so einZeichen?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #6

      @Dany said in Emojis und Icons:

      Okay und wie setze ich so einZeichen?

      Was meinst Du damit? Es ist ein normaler string mit einem Unicode-Zeichen. Den kannst Du direkt eingeben (nicht unbedingt empfehlenswert) oder als hex-representation in der Form \x247c.

      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
      0
      • D Offline
        D Offline
        Dany
        wrote on last edited by
        #7

        @Christian-Ehrlicher So einfach geht das? Also das wäre ja super!

        Allerdings hab ich das gerade versucht und der Compiler meldet:

        Hex-Escape-Sequenz außerhalb des Wertebereiches
        chatInsert("Ich", "Jetzt", "\x274c", false);
                                    ^~~~~~~~
        
        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #8

          Sorry \x24\x7c

          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
          0
          • D Offline
            D Offline
            Dany
            wrote on last edited by
            #9

            Da kommt bei mir dann

            'L

            raus ;)

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

              @Dany said in Emojis und Icons:

              U+274C

              Stimmt, Du erzeugst es ja nicht über QChar sondern in einem string. Demnach muss man die UTF-8 - Kodierung des Zeichens benutzen.

              "\xE2\x9D\x8C"

              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
              0
              • D Offline
                D Offline
                Dany
                wrote on last edited by
                #11

                @Christian-Ehrlicher said in Emojis und Icons:

                \xE2\x9D\x8C

                Ja das funktioniert hervorragen! Und wie mache ich jetzt aus U-274c \xE2\x9D\x8C

                Christian EhrlicherC raven-worxR 2 Replies Last reply
                0
                • D Dany

                  @Christian-Ehrlicher said in Emojis und Icons:

                  \xE2\x9D\x8C

                  Ja das funktioniert hervorragen! Und wie mache ich jetzt aus U-274c \xE2\x9D\x8C

                  Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #12

                  @Dany Meinen link folgen?

                  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
                  0
                  • D Dany

                    @Christian-Ehrlicher said in Emojis und Icons:

                    \xE2\x9D\x8C

                    Ja das funktioniert hervorragen! Und wie mache ich jetzt aus U-274c \xE2\x9D\x8C

                    raven-worxR Offline
                    raven-worxR Offline
                    raven-worx
                    Moderators
                    wrote on last edited by raven-worx
                    #13

                    @Dany
                    Sollte ebenfalls funktionieren (nicht getestet)

                    uint u = 0x274c;
                    QString::fromUcs4(&u, 1)
                    

                    --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                    If you have a question please use the forum so others can benefit from the solution in the future

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      Dany
                      wrote on last edited by
                      #14

                      @Christian-Ehrlicher

                      Tatsächlich hab ich gar nicht gesehen, dass da ein Link ist :(. Auf jeden Fall danke für die Hilfe!

                      @raven-worx

                      Hab ich probiert, funktioniert einwandfrei. Danke!

                      1 Reply Last reply
                      0

                      • Login

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