Results 1 to 4 of 4

Thread: qsqlcursor.h ...

  1. #1
    Join Date
    Jun 2008
    Posts
    29
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Unhappy qsqlcursor.h ...

    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.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: qsqlcursor.h ...

    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).
    J-P Nurmi

  3. #3
    Join Date
    Jun 2008
    Posts
    29
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: qsqlcursor.h ...

    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.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: qsqlcursor.h ...

    Quote Originally Posted by sekatsim View Post
    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.
    J-P Nurmi

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.