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

The selected text cannot be deleted after applying QLineEdit::backspace () while selected some text in a QLineEdit.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.6.0
    • None
    • WindowXP Professional Version 2002 SP3

    Description

      -Preconditions:
      1. Qt Creator1.3.0 and Qt 4.6.0
      2. The EchoMode of QLineEdit is QLineEdit::Normal
      3. A QPushButton to apply method: QLineEdit::backspace ()

      -Steps:
      1. Input some text in QLineEdit.
      2. Select some text in QLineEdit.
      3. Press the QPushButton to apply QLineEdit::backspace ()

      -Actual result:
      The character to the left of the text cursor is deleted but not the selected text.

      -Expect result:
      According to the description of method: "void QLineEdit::backspace()" in document: "Qt 4.6: QLineEdit Class Reference"
      "If no text is selected, deletes the character to the left of the text cursor and moves the cursor one position to the left. If any text is selected, the cursor is moved to the beginning of the selected text and the selected text is deleted."
      The selected text should be deleted.

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            henry Henry Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes