3 # Copyright (C) 2001-2003, Parrot Foundation.
8 examples/nci/PQt.cpp - Qt/Parrot Library
16 $ g++ -fPIC -I$QTDIR/include -I$QTDIR/include/QtGui -L$QTDIR -c PQt.cpp
18 $ gcc -shared -o libPQt.so PQt.o $QTDIR/lib/libQtCore4.so $QTDIR/lib/libQtGui4.so
22 > "%VS90COMNTOOLS%\vsvars32.bat"
24 > set INCLUDE=%QTDIR%\include;%QTDIR%\include\QtGui;%INCLUDE%
26 > set LIB=%QTDIR%\lib;%LIB%
28 > cl /LD PQt.cpp QtGui4.lib QtCore4.lib
30 Or something like that...
34 Qt Native interface for Parrot. See F<examples/nci/QtHelloWorld.pir>
42 #define PQT_API __declspec(dllexport)
50 PQT_API QApplication
* pApp
;
54 =head2 QApplication bindings
58 =item C<QApplication *QApplication_new(void)>
63 PQT_API QApplication
*QApplication_new(void) {
68 pApp
= new QApplication(PQtargc
, PQtargv
);
74 =item C<void QApplication_exec(QApplication *app)>
80 PQT_API
void QApplication_exec(QApplication
*app
)
89 =head2 QLabel bindings
93 =item C<QLabel * QLabel_new(const char *txt)>
99 PQT_API QLabel
* QLabel_new(const char *txt
)
101 QLabel
* pLabel
= new QLabel(txt
, 0);
107 =item C<void QLabel_show(QLabel *label)>
113 PQT_API
void QLabel_show(QLabel
*label
)
120 =item C<void QLabel_resize(QLabel *label, int x, int y)>
126 PQT_API
void QLabel_resize(QLabel
*label
, int x
, int y
)
139 F<examples/nci/QtHelloWorld.pir>,
140 F<docs/pdds/pdd03_calling_conventions.pod>.
148 * c-file-style: "parrot"
150 * vim: expandtab shiftwidth=4: