It works like any other insert. Use QSqlQuery with QSqlQuery::prepare() and construct a normal sql query.