Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compilation setup for correctly handling typed accented characters
Forum Updated to NodeBB v4.3 + New Features

Compilation setup for correctly handling typed accented characters

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 2 Posters 949 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.
  • S Offline
    S Offline
    stefi610
    wrote on last edited by
    #1

    Hi,

    I'm facing an issue when typing accented characters in a QPlainTextEdit or a QLineEdit that requires first to type the accent symbol and then the letter to which it will apply: for example '^' + 'o'.
    Instead of printing 'ô', the accent is ignored and only the letter is displayed 'o'.

    I only have this problem on Linux when using the Qt 5.5.1 libraries I compiled from sources and not when using the pre-compiled libraries available for download.
    I'm working on Ubuntu and I already tried to link to the ICU 54 libraries distributed with Qt during compilation but the problem remains.
    I also compared the dependency libraries linked by the two different sets of Qt libraries but I cannot find any difference.

    Do you have any suggestion about what could be the different configuration causing the issue when I compile Qt from sources?

    I need to apply a patch from the most recent branch of Qt 5.5 to fix some warnings in the network module of Qt 5.5.1.

    Thank you

    raven-worxR 1 Reply Last reply
    0
    • S stefi610

      Hi,

      I'm facing an issue when typing accented characters in a QPlainTextEdit or a QLineEdit that requires first to type the accent symbol and then the letter to which it will apply: for example '^' + 'o'.
      Instead of printing 'ô', the accent is ignored and only the letter is displayed 'o'.

      I only have this problem on Linux when using the Qt 5.5.1 libraries I compiled from sources and not when using the pre-compiled libraries available for download.
      I'm working on Ubuntu and I already tried to link to the ICU 54 libraries distributed with Qt during compilation but the problem remains.
      I also compared the dependency libraries linked by the two different sets of Qt libraries but I cannot find any difference.

      Do you have any suggestion about what could be the different configuration causing the issue when I compile Qt from sources?

      I need to apply a patch from the most recent branch of Qt 5.5 to fix some warnings in the network module of Qt 5.5.1.

      Thank you

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

      @stefi610 said:

      I only have this problem on Linux when using the Qt 5.5.1 libraries I compiled from sources and not when using the pre-compiled libraries available for download.
      I'm working on Ubuntu and I already tried to link to the ICU 54 libraries distributed with Qt during compilation but the problem remains.

      do you only link the ICU binaries to the Qt binaries?
      What i mean is, that of course it's essential to rerun Qt's configure and enable ICU support.

      --- 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
      • S Offline
        S Offline
        stefi610
        wrote on last edited by
        #3

        Yes, I reran the Qt's configure script in order to link to different ICU libraries and always checked that the ICU support was enabled.
        After compilation I also checked with ldd that the Qt libraries were linked to the expected ICU libraries.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stefi610
          wrote on last edited by
          #4

          I could finally find that the cause of the issue are the 'platforminputcontexts' plugins.
          It seems that the even if my application didn't contain them, the precompiled Qt libraries could load and use some system plugins.

          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 Extensions
          • Unsolved