[Qt-interest] QSqlRelationalTableModel - Sort on multiple column

Pierre-Luc Loyer ployer at gmail.com
Sun Jun 21 19:07:02 CEST 2009


Hi,
I'm trying to sort my QSqlRelationalTableModel on multiple column but it
doesn't seem to work. There is a setSort method but it only allows to sort
on one column, the given column.

ex: setSort( 1, Qt::AscendingOrder );

If I call two time setSort, it doesn't stack them, it considers only the
last call.

Is there a way to sort like this : ORDER BY column1, column2

Thanks.

-- 
Pierre-Luc Loyer
Tél. : (514) 519-1220
Programmeur de jeux Wii
A2M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090621/5203482d/attachment.html 


More information about the Qt-interest-old mailing list