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