Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.8.0, 5.9
-
None
Description
like summary, when set clip of textedit to true (in dialog), I can't see the inputpanel, it looks like the inputpanel is clipped out.
main.qml
import QtQuick 2.8 import QtQuick.Controls 2.1 import QtQuick.VirtualKeyboard 2.1 ApplicationWindow { id: app visible: true width: 480 height: 500 Button { text: "click" onClicked: { dlg.open() } } Dialog { id: dlg focus: true parent: ApplicationWindow.overlay standardButtons: Dialog.Cancel | Dialog.Ok width: 300 height: 300 contentItem: TextEdit { id: te //clip: true focus: true text: "hehe" } InputPanel { y: Qt.inputMethod.visible ? dlg.parent.height - (dlg.y + contentItem.y) - height : dlg.parent.height - (dlg.y + contentItem.y) x: -(dlg.x + contentItem.x) width: dlg.parent.width } } }