[Qt-interest] Problem with qSort and QObjects
Carl Snellman
carl.snellman at gmail.com
Tue Feb 16 07:11:38 CET 2010
Hey all,
and thanks to everyone who replied! this really was helpful!
So the only way to get my stuff working was to remove QObject inheritance.
On Sun, Feb 14, 2010 at 9:33 AM, Thiago Macieira <thiago at kde.org> wrote:
> I see nothing in Carl's Account class that requires a QObject. There are no
> signals, no slots, no properties, it doesn't require the parent-child
> ownership tree.
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...
Now, would it make sense to add a few lines to qSort(..) docs to
describe the requirement that the objects must implement copy
constructor also? I spent several hours with this... Or is this common
knowledge that I have just missed on my exploration journey with Qt?
:)
Thanks,
Carl
More information about the Qt-interest-old
mailing list