How to get data from sqlquery that result 3 columns in a row and show only 1 Colum and use the other columns data
hello all
im using QSqlQueryModel subclass to execute sql querys and populate them to tableview
now i have simple sql query that results 3 columns/ fields in a row that invoked in the QSqlQueryModel subclass like this :
QString query_local
= "SELECT foo1,foo2,foo3 FROM tbl" ;
QString query_local = "SELECT foo1,foo2,foo3 FROM tbl" ;
QSqlQueryModel::setQuery(query_local, queryDB);
To copy to clipboard, switch view to plain text mode
now i what to use the data from foo1 and foo 2 but display only foo3
so in the end there will be only one column in the view per row.
Bookmarks