Itseez/opencv — pull request #1029 by SpecLad (2013-06-19 13:49:24+00:00)
Title: Pass the HAVE_QT* flags through the config header, like all others.

I don't know why it didn't work for the original author, but it definitely works now.