Created attachment 378282 [details] ./include/QtSql/private/cachedresult_p.h Description of problem: Some header files from QtSql drivers include private files that are not in the bundle qt-devel. For example, qsqlcachedresult_p.h is referenced in qsql_sqlite.h and compiler will never be able to find it unless it is copied manually from sources. In development package from Nokia, these files are in ../../../src/sql/kernel/[...].h and there are header files in include/QtSql/private that point to real private headers. I don't know if this problem is a real problem and copy the files is the only thing that I can do to resolve the dependecies. I'm sorry if this question must go in another place. Version-Release number of selected component (if applicable): qt-devel-4.5.3 How reproducible: 100% Steps to Reproduce: 1.yum install qt-devel 2. 3. Actual results: /usr/include/QtSql/private/[file].h does not exist. Expected results: rpm-bundle that includes the dependencies.
Created attachment 378284 [details] ../../../src/sql/kernel/qsqlcachedresult_p.h
Applications are not supposed to include qsql_sqlite.h at all, they are expected to use the QSqlDatabase class (the public interface) instead. QSQLiteDriver is not documented at all and the documentation for the QSqlDriver base class says "This class should not be used directly. Use QSqlDatabase instead.". Applications cannot use undocumented classes.
Ok. Thank you. I had unnecessarily included QSQLiteDriver in one source file in addition to the QSqlDatabase class. That was the real problem. Your comment has helped me to find the problem. Excuse me for the inconveniences.