Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.14.2
-
None
Description
When you call select method, it always emit textChanged signal. In my opinion is that this is a mistake, because the text has not changed.
I attached minimal code to reproduce.
Code:
import QtQuick 2.12 import QtQuick.Window 2.12 Window { visible: true width: 640 height: 480 TextEdit { text: '123456789' onTextChanged: console.log('onTextChanged', text) Component.onCompleted: { select(2, 5) select(2, 5) select(2, 5) select(2, 5) select(2, 5) } } }
Output:
qml: onTextChanged 123456789 qml: onTextChanged 123456789 qml: onTextChanged 123456789 qml: onTextChanged 123456789 qml: onTextChanged 123456789 qml: onTextChanged 123456789
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-83224 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
649487,11 | Prevent textChanged signal on select method call | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
609652,3 | Prevent textChanged signal on select method call | dev | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |