[Qt-interest] Calling QSortFilterProxyModel->setSortRole without sorting?

André Somers andre at familiesomers.nl
Tue Aug 23 11:19:40 CEST 2011


Interesting question,

It seems to me that QSortFilterProxyModel is missing an additional
overloaded sort() method that takes (and sets) the sort role,
and would result in only a single sort operation.

André

On Tue, Aug 23, 2011 at 10:37 AM, Rumpold Michael <
Michael.Rumpold at andritz.com> wrote:

> **
> Hi, I want to set a new SortRole, and a new column for sorting.
> My problem is, that sorting is done in both functions.
>
> code:
> model->setSortRole( Qt::UserRole );
> model->sort( newColumn, Qt::AscendingOrder );
>
> Greetings from Vienna
>
> Mike
> ------------------------------
>
> *This message and any attachments are solely for the use of the intended
> recipients. They may contain privileged and/or confidential information or
> other information protected from disclosure. If you are not an intended
> recipient, you are hereby notified that you received this email in error and
> that any review, dissemination, distribution or copying of this email and
> any attachment is strictly prohibited. If you have received this email in
> error, please contact the sender and delete the message and any attachment
> from your system.*
>
> *Thank You.*
> ------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110823/79f2a480/attachment.html 


More information about the Qt-interest-old mailing list