mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-06 10:31:19 -08:00
port of EQL/Qt4 to Qt5
This commit is contained in:
commit
0591f54ce8
339 changed files with 99935 additions and 0 deletions
32
Qt_EQL/cpp/lib.cpp
Normal file
32
Qt_EQL/cpp/lib.cpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#include "lib.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QObject* ini()
|
||||
{
|
||||
// any QObject inherited class will do (e.g. main window of a C++ application)
|
||||
static QObject* cpp = 0;
|
||||
if(!cpp) {
|
||||
cpp = new CPP;
|
||||
cpp->setObjectName("Qt_EQL_dynamic");
|
||||
}
|
||||
return cpp;
|
||||
}
|
||||
|
||||
// insert here your function implementations
|
||||
|
||||
QVariantList CPP::hello(const QVariantList& list)
|
||||
{
|
||||
QString msg;
|
||||
QDebug debug(&msg);
|
||||
debug << list;
|
||||
QMessageBox::information(0, "QVariantList", msg);
|
||||
|
||||
QVariantList ret(list);
|
||||
if(!ret.isEmpty()) {
|
||||
ret[0] = "hello from Lisp";
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
Loading…
Add table
Add a link
Reference in a new issue