Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61351

setting clip of textedit to true result in invisible inputpanel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.8.0, 5.9
    • Virtual Keyboard
    • 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
      		}
      	}
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mitch_curtis Mitch Curtis
            niqingliang2003 niqingliang2003
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes