I have two classes: one is my MainWindow in which I create connection to database, other one is a QDialog from which I want insert new rows into the database table.
QDialog is called form inside of MainWindow (through menu).
Problem is the QDialog don't seems to see the database connection created by MainWindow.
How can I make the db wisible to QDialog?

you can view my code here: http://code.google.com/p/neurohelper...e/#svn%2Ftrunk
MainWindow: http://code.google.com/p/neurohelper...mainwindow.cpp
QDialog: http://code.google.com/p/neurohelper...userdialog.cpp

Any help?