Hi how I can make a cycle on the filed of a var?
I just check in the docs but without success
I use a test.pri included in a test.pro but is impossible iterate a list
defineTest(testforOnFiles)
{
message( params $$ARGS )
message( params $$1 )
LIST = 1 2 3
for(icefile, LIST)
{
message(file - $${icefile})
}
}
defineTest(testforOnFiles)
{
message( params $$ARGS )
message( params $$1 )
LIST = 1 2 3
for(icefile, LIST)
{
message(file - $${icefile})
}
}
To copy to clipboard, switch view to plain text mode
I use QtCreator 2.3.1 for linux kubuntu 11.04
Added after 1 15 minutes:

Originally Posted by
muchasuerte
Hi how I can make a cycle on the filed of a var?
I just check in the docs but without success
I use a test.pri included in a test.pro but is impossible iterate a list
defineTest(testforOnFiles)
{
message( params $$ARGS )
message( params $$1 )
LIST = 1 2 3
for(icefile, LIST)
{
message(file - $${icefile})
}
}
defineTest(testforOnFiles)
{
message( params $$ARGS )
message( params $$1 )
LIST = 1 2 3
for(icefile, LIST)
{
message(file - $${icefile})
}
}
To copy to clipboard, switch view to plain text mode
I use QtCreator 2.3.1 for linux kubuntu 11.04
resolved the problem is the "{" position
now it works
defineTest(testforOnFiles) {
message( params $$ARGS )
message( params $$1 )
LIST = 1 2 3
for(icefile, LIST) {
message(file - $${icefile})
}
}
defineTest(testforOnFiles) {
message( params $$ARGS )
message( params $$1 )
LIST = 1 2 3
for(icefile, LIST) {
message(file - $${icefile})
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks