Qt 6.11 is out! See what's new in the release
blog
Qt QSqlQueryModel::setQuery control what display in in the column
General and Desktop
5
Posts
4
Posters
4.9k
Views
1
Watching
-
Im using :
@QString query = "SELECT foo,n1,n2 FROM play_list";
QSqlQueryModel::setQuery(query, queryDB);@in QSqlQueryModel subclass , but i dont want to display all the results that i getting from the select , i want to use the data and display only foo in the display and others results in others things . how can it be done?
-
Subclassing [[Doc:QSortFilterProxyModel]] and reimplementing method filterAcceptsColumn() should do the trick.