PDA

View Full Version : qsqlcursor.h ...



sekatsim
15th June 2008, 18:36
I believe I have everything installed.. when I compile, qsqldatabase.h is found with no problems. But no matter what I try, I keep getting

error: qsqlcursor.h: No such file or directory

What am I missing? I can't find anything on google, or this site.

jpn
15th June 2008, 18:47
What are you trying to compile? Qt 3 and Qt 4 are not compatible. You cannot compile a Qt 3 app with Qt 4. QSqlCursor is an old Qt 3 class which is no more available in Qt 4 (which you seem to be using).

sekatsim
15th June 2008, 18:52
I was just following the instructions off the QT doc, and it said that qsqlcursor was more convenient than qsqlquery, but I am using 4.4... so I guess I'll have to go with qsqlquery. Thank you.

jpn
15th June 2008, 19:09
I was just following the instructions off the QT doc, and it said that qsqlcursor was more convenient than qsqlquery, but I am using 4.4... so I guess I'll have to go with qsqlquery.
Make sure you follow the correct version. In Qt 3 docs of QSqlQuery it indeed says something like that, but not in Qt 4 docs of QSqlQuery.