berndnoetscher wrote:Sbleck wrote:Please let me know too how could I do to connect to Oracle (and SQL Server) databases, too...
Hi Sven,
there is a need for a Qt db driver to connecting to Oracle and sql server and as far as I know, there are available only for Qt license holders and not the LGPL version of Qt.
CU
Bernd
Hello, Bernd,
Thanks for your comments. Only recently I had chances to understand why:
"
The QtSql module provides a platform- and database-independent interface
for accessing SQL databases. This interface is supported by a set of classes
that use Qt’s model/view architecture to provide database integration with the
user interface.
A database connection is represented by a QSqlDatabase object. Qt uses drivers
to communicate with the various database APIs. The Qt Desktop Edition
includes the following drivers:
- Code: Select all
Driver Database
---------------------------------------------
QDB2 IBM DB2 version 7.1and later
QIBASE Borland InterBase
QMYSQL MySQL
QOCI Oracle (Oracle Call Interface)
QODBC ODBC (includes Microsoft SQL Server)
QPSQL PostgreSQL versions 6.x and 7.x
QSQLITE SQLite version 3 and later
QSQLITE2 SQLite version 2
QTDS Sybase Adaptive Server
Due to license restrictions, not all of the drivers are provided with the Qt Open
Source Edition. When configuring Qt, we can choose between including the
SQL drivers inside Qt itself and building them as plugins. Qt is supplied with
the SQLite database, a public domain in-process database.
C++-GUI-Programming-with-Qt-4-1st-ed, pg 283.
http://www.qtrac.eu/C++-GUI-Programming ... 1st-ed.zip"
And I know that even Oracle databases could be accessed by open source drivers (
http://otl.sourceforge.net/), but couldn´t understand why it couldn´t be added to some tools, in the meanwhile...
But I should say that in XP the problems (hang during compile process) remain the same, during compilation. Wanted to understand why, of course...
Rgds,
Sven