Results 1 to 1 of 1

Thread: WinSeven,QSQL plugin,error

  1. #1
    Join Date
    Jul 2007
    Location
    BY.Minsk
    Posts
    90
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default WinSeven,QSQL plugin,error

    with options:
    Qt Code:
    1. configure -debug-and-release -direct3d -plugin-sql-mysql -plugin-sql-odbc -plugin-sql-psql -qt-libpng -qt-libtiff -qt-libjpeg -phonon -webkit -qt-style-windowsvista -qt-style-windowsxp -platform win32-msvc2005
    2. nmake
    3. nmake clean
    4. pause
    To copy to clipboard, switch view to plain text mode 

    Code:
    Qt Code:
    1. db = QSqlDatabase::addDatabase("QPSQL");
    2. db.setHostName(cHost);
    3. db.setDatabaseName(cDatabase);
    4. db.setUserName(cUser);
    5. db.setPassword(cPassword);
    6. bool ok = db.open();
    To copy to clipboard, switch view to plain text mode 

    As a result, we get an error:
    Attached Images Attached Images

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.