【发布时间】:2017-10-09 07:32:28
【问题描述】:
是否可以在 TextField 组件的 text 属性中插入换行符:
import QtQuick 2.6
import QtQuick.Controls 1.2
import QtQuick.Window 2.2
Window {
visible: true
width: 640
height: 480
Grid {
TextField {
text: "Text\nhere"
}
}
}
在文本字段中打印空白而不是换行符
【问题讨论】: