Binding loop detected for Input panel property "active"
-
I have text area whose height has to be adjusted based visibility of virtual keyboard.
But when I run the application I am getting the error "QML Keyboard: Binding loop detected for property "active". Hence keyboard is not hiding.Test code is as follows:
import QtQuick 2.9
import QtQuick.Window 2.2
import QtQuick.Controls 2.2
import QtQuick.VirtualKeyboard 2.2Window {
visible: true
width: 1280
height: 800
title: qsTr("Hello World")property int conclusionLength: 512 Rectangle{ id: conclusionField height: cKeyBoard.visible ? 110 : 310 width: height anchors.top: parent.top color: "white" border.color: "Black" ScrollView{ anchors.fill: parent TextArea{ id: area wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere property string previousText: text onLengthChanged: { if(length > conclusionLength){ var cursor = cursorPosition; text = previousText; if (cursor > text.length) { cursorPosition = text.length; } else { cursorPosition = cursor-1; } } previousText = text } } } } InputPanel{ id: cKeyBoard height: 300 width: 1280 visible: active anchors.bottom: parent.bottom }}
-
I have text area whose height has to be adjusted based visibility of virtual keyboard.
But when I run the application I am getting the error "QML Keyboard: Binding loop detected for property "active". Hence keyboard is not hiding.Test code is as follows:
import QtQuick 2.9
import QtQuick.Window 2.2
import QtQuick.Controls 2.2
import QtQuick.VirtualKeyboard 2.2Window {
visible: true
width: 1280
height: 800
title: qsTr("Hello World")property int conclusionLength: 512 Rectangle{ id: conclusionField height: cKeyBoard.visible ? 110 : 310 width: height anchors.top: parent.top color: "white" border.color: "Black" ScrollView{ anchors.fill: parent TextArea{ id: area wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere property string previousText: text onLengthChanged: { if(length > conclusionLength){ var cursor = cursorPosition; text = previousText; if (cursor > text.length) { cursorPosition = text.length; } else { cursorPosition = cursor-1; } } previousText = text } } } } InputPanel{ id: cKeyBoard height: 300 width: 1280 visible: active anchors.bottom: parent.bottom }}
@manny_lp said in Binding loop detected for Input panel property "active":
But when I run the application I am getting the error "QML Keyboard: Binding loop detected for property "active". Hence keyboard is not hiding.
Remove the line
visible: active, then. -
You don't have any hide button in the QML code you posted.
-
No idea, then, perhaps it is some QtVK thing.