I add a property cond, when cond is true, it will draw 3 picture,otherwise only one will be drawed
but qml report "Unexpected token `if'" ,any ideas? Thanks
import QtQuick 1.1
Rectangle{
id:rect
property bool cond:true;
Row{
Image{ source:"good.png" }
if(cond) {
Image{ source:"good.png" }
Image{ source:"good.png" }
}
}
}
import QtQuick 1.1
Rectangle{
id:rect
property bool cond:true;
Row{
Image{ source:"good.png" }
if(cond) {
Image{ source:"good.png" }
Image{ source:"good.png" }
}
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks