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

TextInput's selectByMouse does not completely work then there's more text than fit in the field

    XMLWordPrintable

Details

    Description

      Run the code below. Note how double-clicking on a word at the end of the
      line to select it does not work, while doing the same at the beginning does.

      import Qt 4.7
      
      Rectangle {
          width: 640; height: 480;
          Rectangle {
              anchors.centerIn: parent
              width: 400; height: 25;
              color: "blue"
      
              TextInput {
                  anchors.fill: parent
                  color: "white"
                  focus: true
                  selectByMouse: true
                  text: "Sea Shepherd campaigner Peter Bethune faces 15 years in jail after boarding whaling ship"
              }
          }
      }
      

      Attachments

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

        Activity

          People

            wallison Warwick Allison (closed Nokia identity) (Inactive)
            mathiasm Mathias Malmqvist
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes