The QDjango class provides a set of static functions.  
 More...
#include <QDjango.h>
|  | 
| class | QDjangoCompiler | 
|  | 
| class | QDjangoModel | 
|  | 
| class | QDjangoMetaModel | 
|  | 
| class | QDjangoQuerySetPrivate | 
|  | 
The QDjango class provides a set of static functions. 
It is used to access registered QDjangoModel classes. 
  
  | 
        
          | QSqlDatabase QDjango::database | ( | ) |  |  |  | static | 
 
Returns the database used by QDjango. 
If you call this method from any thread but the application's main thread, a new connection to the database will be created. The connection will automatically be torn down once the thread finishes.
- See Also
- setDatabase() 
 
 
  
  | 
        
          | bool QDjango::isDebugEnabled | ( | ) |  |  |  | static | 
 
 
  
  | 
        
          | void QDjango::setDatabase | ( | QSqlDatabase | database) |  |  |  | static | 
 
Sets the database used by QDjango. 
You must call this method from your application's main thread.
- See Also
- database() 
 
 
  
  | 
        
          | void QDjango::setDebugEnabled | ( | bool | enabled) |  |  |  | static | 
 
 
The documentation for this class was generated from the following files: