aboutsummaryrefslogtreecommitdiff
path: root/qt/pgsql/basic
diff options
context:
space:
mode:
Diffstat (limited to 'qt/pgsql/basic')
-rw-r--r--qt/pgsql/basic/driver.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt/pgsql/basic/driver.cxx b/qt/pgsql/basic/driver.cxx
index 1c89430..a2384f6 100644
--- a/qt/pgsql/basic/driver.cxx
+++ b/qt/pgsql/basic/driver.cxx
@@ -10,6 +10,8 @@
#include <cassert>
#include <iostream>
+#include <QtCore/QCoreApplication>
+
#include <odb/pgsql/database.hxx>
#include <odb/pgsql/transaction.hxx>
@@ -24,6 +26,8 @@ using namespace odb::core;
int
main (int argc, char* argv[])
{
+ QCoreApplication app (argc, argv);
+
try
{
auto_ptr<database> db (create_database (argc, argv));