[Qt-interest] Problem with qSort and QObjects

Florian Vichot florian.vichot at diateam.net
Tue Feb 16 14:40:17 CET 2010


> Yeah, the code I added to email was a simple case to showcase the
> problem. My actual code uses signals...
> To get my actual stuff working, I had to remove QObject inheritance
> and thus the signals, which was unfortunate...

Why remove the QObject inheritance ? simply store pointers to QObject
instead of QObject per value, and use the three arguments form of qSort
(see previous email), and provide your own compare function...

Florian





More information about the Qt-interest-old mailing list