通过逆向工程从Qt应用程序读取字符串

通过逆向工程从Qt应用程序读取字符串,qt,qml,reverse-engineering,Qt,Qml,Reverse Engineering,我想以编程方式读取基本QtGUI应用程序在运行时生成的字符串 该字符串出现在屏幕上,但我没有源代码,我想将该字符串传递给另一个脚本 以下是相关的.qml文件: import QtQuick 1.0 Rectangle { id: tagCloud SystemPalette { id: palette } //we get the system default colors from this //public API property variant model prop

我想以编程方式读取基本QtGUI应用程序在运行时生成的字符串

该字符串出现在屏幕上,但我没有源代码,我想将该字符串传递给另一个脚本

以下是相关的.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; 
        } 
    } 
} 
} 
在生成“category”字符串时,是否有一种简单的方法来获取该字符串

编辑:这是指向应用程序的链接,

将数组作为属性添加到flow中,oncomponentcomplete在文本中,将类别添加到数组中?是否可以修改QML文件的源代码?另外,理论上你可以修改QML文件(即使它作为资源嵌入到二进制文件中)并添加代码将这个字符串写入磁盘上的文件中。例如,我尝试更改字体大小(textFontSize),但没有任何明显的效果,所以我认为QML文件已经加载到二进制文件中。arrynaq,你建议怎么做?Max Go,你能详细说明一下吗?添加了一个到Qt应用程序的链接。添加一个数组作为flow的属性,oncomponentcomplete在文本中,添加类别到数组?你有可能修改QML文件的源代码吗?另外,理论上你可以修改QML文件(即使它作为资源嵌入到二进制文件中)并添加代码将这个字符串写入磁盘上的文件中。例如,我尝试更改字体大小(textFontSize),但没有任何明显的效果,所以我认为QML文件已经加载到二进制文件中。arrynaq,你建议怎么做?Max Go,你能详细说明一下吗?添加了一个Qt应用程序的链接。