Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.3
-
None
-
Linux
-
88c4bd4d5fc25a58d3b71c540acd6f2484c3a9a3
Description
Run the code below. Note that the text below the blue rectangle is always Can't paste until you have selected and copied (ctrl-c) a piece of text in this QML application, even if the clipboard already contains something that can be pasted (ctrl-v) from before.
import QtQuick 1.1 Rectangle { width: 640 height: 480 TextEdit { id: textEdit width: 500 height: 400 anchors.centerIn: parent selectByMouse: true focus: true font.pixelSize: 20 wrapMode: TextEdit.WordWrap Rectangle { color: "blue"; anchors.fill: parent; opacity: 0.1 } Component.onCompleted: { text = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.\n" } } Text { anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom text: textEdit.canPaste ? "Can paste" : "Can't paste" font.pixelSize: 30 } }