Environment:
SUSE 10.2 KDE 3.5.5 Qt 3.3 Qt Designer and KDevelop
Here is snippets from my Main Form:

mainform.h
#include <qsqldatabase.h>
#include "connection.h"

class QSqlDatabase
----------------------
mainform.cpp
#include <qsqldatabase.h>

public
QSqlDatabase * DB;
----------------------
mainform.ui.h
bool MainWindow:penDB()
try
{
DB->isOpenError();
}
catch(...)
{
qWarning( "Failed to open database: " + DB->lastError().driverText() );
qWarning( DB->lastError().databaseText() );
return false;
};
---------------------
The above situation produces a segmentation fault on execution of any DB member function. The debugger shows a pointer handle for the DB object but expanding the members indicates an incomplete type message.

sqlite from the command line executes without error for any DDL or DML statement.

What am I missing?