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

Signal QTextDocument::contentsChanged() is sent twice on each backspace deletion

    XMLWordPrintable

Details

    Description

      Signal QTextDocument::contentsChanged() seems to be sent twice on each backspace deletion.

      You can easily reproduce this e.g. with Qt textedit demo by:

      1) adding one more signal connection to TextEdit::TextEdit(QWidget *parent) contructor:

      connect(textEdit->document(), SIGNAL(contentsChanged()), this, SLOT(showSignalCount()));

      2) creating an own slot for setting a debug breakpoint there when using backspace:

      void TextEdit::showSignalCount() {}

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            helenius Harri Helenius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes