mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
bindings_test: initial commit
This commit is contained in:
parent
a9c74647ec
commit
120c5bcbdd
7
bindings_test/build.sh
Executable file
7
bindings_test/build.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
g++ -g -fPIC ../binding.cpp testapp.cpp $(pkg-config --cflags --libs Qt5Widgets) -o testapp
|
||||
|
||||
g++ -g -fPIC direct.cpp $(pkg-config --cflags --libs Qt5Widgets) -o direct
|
9
bindings_test/direct.cpp
Normal file
9
bindings_test/direct.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
#include <QtWidgets>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
QWidget window;
|
||||
window.show();
|
||||
return app.exec();
|
||||
}
|
11
bindings_test/testapp.cpp
Normal file
11
bindings_test/testapp.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include "../binding.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
PQApplication app = QApplication_new(&argc, argv);
|
||||
|
||||
PQWidget w = QWidget_new();
|
||||
QWidget_show(w);
|
||||
|
||||
return QApplication_exec(app);
|
||||
}
|
Loading…
Reference in New Issue
Block a user