I'm not familiar with Oracle, but this looks close enough to Postgresql that I'll show how I would do it in PG/SQL in hopes that it will be useful.
I would create the function in the database
CREATE OR REPLACE FUNCTIOM test_fucntion(_name TEXT)
RETURNS BIGINT AS $BODY$
INSERT INTO test_table(name)
VALUES(_name) RETURNING id into _rv;
After adding that function to the database you can simply execute the query
SELECT * from test_function("name");
to get your ID.
As I said, this is Postgres code, but I'm pretty sure the Postgres authors imitated Oracle to some extent.
if you use MSVC and not mingw you must replace the line C: \ Qt \ Qt5.4.0 \ Tools \ mingw482_32 \ bin \ mingw32-make.exe by
nmake (cf Qt documentation)
and I believe it's not recommended to use Qt 5.4.0 and MSVC,it's better tou use Qt 5.4.1 (binary compatiblity problems with 5.4.0 and MSVC)