Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.3
-
None
-
I installed the Qt6.5.3 with the maintenance online tool.
Description
When I use the TextField in Qt6.5.3,I meet a bug which caused the program crash.If I emit a singleton type's signal in the TextField of "onFocusChanged",the program will crashed.When I use the TextInput in Qt6.5.3,it's all right.Besides,I try to use the Qt6.5.0 with TextField,it's all right.Therefore, I think it's a bug in Qt6.5.3.My test code is as following:
//Main.qml import QtQuick import QtQuick.Controls Window { id: root width: 640 height: 480 visible: true title: qsTr("Hello World") color: KeyBoardInfo.keyBoardInfoVisible ? "red" : "green" TextField{ onFocusChanged: { KeyBoardInfo.keyBoardInfoVisible = false; KeyBoardInfo.xxxsignal(); } } }
//KeyBoardInfo.qml pragma Singleton import QtQuick 6.5 QtObject { signal xxxsignal(); property bool keyBoardInfoVisible: true }