PDA

View Full Version : qmake iterate list content



muchasuerte
23rd November 2011, 17:02
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})
}
}


I use QtCreator 2.3.1 for linux kubuntu 11.04

Added after 1 15 minutes:


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})
}
}


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})
}
}