Hi All,

I am a newbie with Qt.

I have an application that I am trying to build that uses sqlite as a database to store its information.

I have noticed in the examples provided with Qt SDK that the database connection and any associated models are declared and initialized in the main.cpp file. Is this a standard practice. As at the moment I have these objects declared in the header file of the dialog that I am using and defined in its associated implementation file (.cpp) or is this just a matter of preference.

Regards

Scott