kk i'l do it
import QtQuick 1.1
Rectangle {
property string typestring: ""
Rectangle
{
Text {
id: t1
anchors.centerIn: parent
onTextChanged:
{
if(condition)
{
typestring == " some text" // has to get printed in text
}
else if(condition)
{
typestring = "text" // this has to printed in text of rectangle
}
}
}
}
}
the information has to appear in Text, based on codition in onTextChanged, please help me.