test for QTWarpUI

This commit is contained in:
Franck Bettinger 2002-09-11 16:41:11 -04:00
parent 1eb3dd19fc
commit 3f047aabaf
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,44 @@
<!DOCTYPE UI><UI>
<class>qtwrapping</class>
<widget>
<class>QDialog</class>
<property stdset="1">
<name>name</name>
<cstring>qtwrapping</cstring>
</property>
<property stdset="1">
<name>geometry</name>
<rect>
<x>0</x>
<y>0</y>
<width>229</width>
<height>38</height>
</rect>
</property>
<property stdset="1">
<name>caption</name>
<string>QTWrapUI Test program</string>
</property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>TextLabel1</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>This is a test for QTWrapUI.</string>
</property>
</widget>
</vbox>
</widget>
</UI>

View File

@ -0,0 +1,15 @@
#include <qapplication.h>
#include "qtwrapping.h"
int main(int argc, char *argv[])
{
QApplication app(argc,argv);
qtwrapping qtw;
app.setMainWidget(&qtw);
qtw.show();
int ret=app.exec();
return ret;
}