Red Hat Bugzilla – Bug 547450
qt-devel doesn't include files in ./include/QtSql/private
Last modified: 2009-12-14 13:55:50 EST
Created attachment 378282 [details]
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):
Steps to Reproduce:
1.yum install qt-devel
/usr/include/QtSql/private/[file].h does not exist.
rpm-bundle that includes the dependencies.
Created attachment 378284 [details]
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.