我想以编程方式读取基本Qt GUI应用程序在运行时生成的字符串。
字符串出现在屏幕上,但我没有源,我想将此字符串传递给另一个脚本。
这是相关的.qml文件:
import QtQuick 1.0
Rectangle {
id: tagCloud
SystemPalette { id: palette } //we get the system default colors from this
//public API
property variant model
property color baseColor: palette.base
property color textColor: palette.text
property int textFontSize: 16
color: baseColor
Flow {
id: flow
width: parent.width
spacing: 15
anchors.margins: 4
anchors.verticalCenter: parent.verticalCenter
//property int maxHeight:0
Repeater {
id: repeater
model: tagCloud.model
Text {
id: textBlock
text: category
font.pointSize: tagCloud.textFontSize;
}
}
}
}
是否有一种简单的方法来获取生成的“类别”字符串?
编辑:这是应用程序的链接, http://cybertron.cg.tu-berlin.de/eitz/projects/classifysketch/sketchpad_win.zip