Try to avoid includes both card library headers and Qt headers in the same source file.