Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3720

QLineEdit::cursorWordForward() don't have the correct behavior on Linux and Mac OS X

    XMLWordPrintable

Details

    • macOS

    Description

      The expected behavior of QLineEdit::cursorWordForward() is different depending on the platform. QLineEdit should have a platform specific implementation of QLineEdit::cursorWordForward().

      For example, using the text "Qt Software", wordForward is expected to do:
      -on Linux: move the cursor between the first 't' and the space
      -on Mac OS X: same as on Linux
      -on Windows: move the cursor between the space and the 'S'

      With the text "Nokia, Qt Software", wordForward is expected to do:
      -on Linux: move the cursor between 'a' and ','
      -on Mac OS X: same as Linux
      -on Windows: move the cursor between the first space and 'Q'
      On the three platform, the next wordForward would:
      -on Linux: move the cursor between 't' and the second space
      -on Mac OS X: same as Linux
      -on Windows: move the cursor between the second space and 'S'

      The current behavior is not right on any platform.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            poulain Benjamin Poulain (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes