Hi,
I'm new to the x-programming world of QT and lov it!!.
I have a hopefully simple problem, I need to get access to the main apps instance so I can utilize some of the functions and variables required throught my app.
So in my main app: MyApp.h, i have a database handle [QSqlDatabase m_pPrimarydb] that i declared as public.
public:
QSqlDatabase m_pPrimarydb;
In my MSVC apps i would have a app pointer declared as "theApp" and would be able to use it throught the app's various classes as:
if(theApp->m_pPrimarydb) {
...
}
How the heck can I do this in QT ?, i searched the examples but cannot find anything that can assist me.
Thanks,
Johnny
Bookmarks