我需要在模拟屏幕上显示一个字符串.为此,我应该从现有的Filename.txt/Filename.csv文件中读取文本.text参数更新,如下面的代码所示.我需要从文本文件中访问该字符串并在MarqueeText元素中使用它.Accessed字符串应在MarqueeText元素的文本字段中使用.
MarqueeText {
id:scrolltext
width: 255
height: 48
anchors.verticalCenter: parent.horizontalCenter
text: //i need to access the string in text file to be displayed
}
Run Code Online (Sandbox Code Playgroud)
请帮我解决一下这个.谢谢.