Which database do you use? Some don't have the possibility to get the affected rows... Just try to print the names out and see if they appear:
Qt Code:
  1. while (get_query.next())
  2. qWarning() << get_query.value(0).toString();
To copy to clipboard, switch view to plain text mode