%module KtCore %include "core/qbytearray.i" %include "core/qchar.i" %include "core/qlist.i" %include "core/qregexp.i" %include "core/qset.i" %include "core/qstring.i" %include "core/qstringlist.i" %include "core/qvector.i" %template(QListInt) QList; %template(QListQByteArray) QList; %template(QListQChar) QList; %template(QListQString) QList; %template(QSetInt) QSet; %template(QSetQByteArray) QSet; %template(QSetQChar) QSet; %template(QSetQString) QSet; %template(QVectorInt) QVector; %template(QVectorQByteArray) QVector; %template(QVectorQChar) QVector; %template(QVectorQString) QVector; %{ #include "QtCore/QObject" #include "QtCore/QCoreApplication" #include "QtCore/QFile" QT_USE_NAMESPACE %} class QObject { public: QObject(QObject *parent = Q_NULLPTR); virtual ~QObject(); }; class QCoreApplication : public QObject { public: QCoreApplication(int argc, char *argv[]); ~QCoreApplication(); static int exec(); }; class QFile { public: QFile(QString filename); ~QFile(); bool exists() const; };