--nextPart4176724.1zaiK7vcYS Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Christian Ehrlicher wrote: >> Your argument doesn't make sense. Functions that were not overridden >> will be inherited from QList. > >You're wrong. It's true for simple types but not for classes. Try to >compile this piece of code: > >--------------------8<------------------ >#include > >struct testStruct { > int iFirst; > int iSecond; bool operator=3D=3D(const testStruct&) const; >}; > >int main(int argc, char *argv[]) >{ > QList t1, t2; > QList s1, s2; > > if ( t1 =3D=3D t2 ) > qDebug("t1 =3D=3D t2"); > if ( s1 =3D=3D s2 ) > qDebug("s1 =3D=3D s2"); > return 1; >} >--------------------8<------------------ >gcc will fail here (so it's not only the stupid msvc-compiler). By adding the line I showed above, it compiles. You cannot compare two structs unless they provide operator=3D=3D. Since KResolverEntry doesn't, you cannot compare two KResolverResults.=20 You're not supposed to, either, nor transform it into a set or vector. As for your toSet() test, did you include ? Because that's where=20 QList::toSet() is defined. Anyways, removing the export macro from KResolverResults is out of the=20 question. If you have a problem compiling, let's work out another=20 solution. =2D-=20 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 5. Swa he g=C3=A9anhwearf t=C3=B3 timbran, and hwonne he c=C3=B3m, l=C3=A1!= Unix cw=C3=A6=C3=B0 "Hello,=20 World". =C7=BCfre =C7=BDghwilc w=C3=A6s gl=C3=A6d and seo woruld w=C3=A6s f= r=C3=A9o. --nextPart4176724.1zaiK7vcYS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBDZN9KM/XwBW70U1gRAjGsAKCsqgR2kpRkxt+kRD7AeBgy8Jsv2QCgkq8L +4dqL+P4RuS6R/fWhDB3Dmg= =akPt -----END PGP SIGNATURE----- --nextPart4176724.1zaiK7vcYS--