I am afraid I don't understand.
Your code already adds strings to the list, i.e. you already know how the << operator works.
Cheers,
_
I am afraid I don't understand.
Your code already adds strings to the list, i.e. you already know how the << operator works.
Cheers,
_
Something like that?
list << query.exec("select kod_lekarstwa, nazwa from lekarstwo;");
exec() returns a bool.
You want to loop over the results. See the example in the documentation for QSqlQuery.
Cheers,
_
Bookmarks