Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 1.1
- Rectangle {
- width: 1024
- height: 600
- Flickable {
- anchors.fill: parent
- contentHeight: content.paintedHeight
- clip: true
- TextEdit {
- id: content
- width: parent.width
- readOnly: true
- font.pointSize: 22
- text: ""
- }
- }
- Component.onCompleted: {
- var array = [];
- for (var i = 0; i < 1000; i++) {
- array.push("adding another line " + i);
- if (Math.random() < 0.25)
- array.push(" just to be different we added this line");
- }
- content.text = array.join("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement