Qt Code:
  1. query.prepare(trUtf8("SELECT browse_caption FROM descriptor_table WHERE id='%1'").arg(integer[m_iIndex+1].toInt()));
To copy to clipboard, switch view to plain text mode 

Well I can't prepare the statement only once, because I have to change the argument to the prepend) function. The argument is an integer that should raise by one every time I go through for loop.