The following code results in the error
Unexpected token `for'
I'm not a JavaScript expert, but it looks valid to me:
Qt Code:
for (i=1;i<=10;i++) { // Do something }To copy to clipboard, switch view to plain text mode
The following code results in the error
Unexpected token `for'
I'm not a JavaScript expert, but it looks valid to me:
Qt Code:
for (i=1;i<=10;i++) { // Do something }To copy to clipboard, switch view to plain text mode
My bad. From what I've heard on the DevDays, I just assumed that I could mix JavaScript and QML as I wanted. Wrapping it with a function does the trick.
Bookmarks