It was there, but so was another (old) version of the Qt library, and it found the old one. I got rid of it, and now it works.

Thank you for your help, jacek.