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. macOS QPlainTextEdit accented characters blocking text selection
Forum Updated to NodeBB v4.3 + New Features

macOS QPlainTextEdit accented characters blocking text selection

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 646 Views 2 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
    SandyLocke
    wrote on last edited by
    #1

    Hi,

    If a QPlainTextEdit is used on macOS Mojave and a accented character is typed then QPlainTextEdit blocks user actions like text selection. This behaviour occurs when the accent character is pressed and a user tries to select text, like he wants to abort the writing of a composed character. With Qt 5.11.2, 5.11.3 and 5.12.0 the QPlainTextEdit blocks text selection if the first half of a composed character is written.

    Steps to reproduce the issue

    1. Make sure you have a German or French keyboard layout configured
    2. Write some random text, like "asdfkasklfhkashgkg"
    3. Go to a new line
    4. Type ´, like you would type á
    5. Do not press a!
    6. Try to select the random text with the mouse

    Result: The text selection on macOS is not possible, but on Windows 10 it works. Other apps like RStudio or the native TextEdit on macOS Mojave don't seam to have that issue.

    Example project: https://github.com/MrMontag/macos-de-keyboard

    Is this behaviour a feature or a bug? Do you know if there is a solution to this problem on macOS?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Pretty good question... Did you already check the bug report system to see if there's something related ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SandyLocke
        wrote on last edited by
        #3

        Yes, but I could not find bug report related to the issue.

        I did a test on Ubuntu 18.04 LTS and the QPlainTextEdit behaves like expected, i.e. the text selection is possible. Furthermore, if you type a ´ and relocate the cursor to a different line and enter a afterwards the á gets inserted at the cursor position. This behaviour is consistent on Ubuntu and Windows. On macOS this is not possible because of the locked QPlainTextEdit. Looks like this is a bug on macOS...

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then please open a new report providing your example as a zip file and the instructions you posted here. Don't use links as they might disappear in the long run. Also, it's easier for the developer to have only one place to look for all the data.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SandyLocke
            wrote on last edited by
            #5

            The related ticket is https://bugreports.qt.io/browse/QTBUG-72707

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Thanks !

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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