Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Compilation setup for correctly handling typed accented characters

    Installation and Deployment
    2
    4
    720
    Loading More Posts
    • 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
      stefi610 last edited by

      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-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @stefi610 last edited by

        @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 Reply Quote 0
        • S
          stefi610 last edited by

          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 Reply Quote 0
          • S
            stefi610 last edited by

            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 Reply Quote 0
            • First post
              Last post