0
|
1 |
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
|
|
2 |
<class>MasterChildWindowBase</class>
|
|
3 |
<widget class="QWidget">
|
|
4 |
<property name="name">
|
|
5 |
<cstring>MasterChildWindowBase</cstring>
|
|
6 |
</property>
|
|
7 |
<property name="geometry">
|
|
8 |
<rect>
|
|
9 |
<x>0</x>
|
|
10 |
<y>0</y>
|
|
11 |
<width>565</width>
|
|
12 |
<height>659</height>
|
|
13 |
</rect>
|
|
14 |
</property>
|
|
15 |
<property name="caption">
|
|
16 |
<string>Qt Master-Child Example</string>
|
|
17 |
</property>
|
|
18 |
<grid>
|
|
19 |
<property name="name">
|
|
20 |
<cstring>unnamed</cstring>
|
|
21 |
</property>
|
|
22 |
<property name="margin">
|
|
23 |
<number>11</number>
|
|
24 |
</property>
|
|
25 |
<property name="spacing">
|
|
26 |
<number>6</number>
|
|
27 |
</property>
|
|
28 |
<widget class="QLabel" row="0" column="0">
|
|
29 |
<property name="name">
|
|
30 |
<cstring>TextLabel1</cstring>
|
|
31 |
</property>
|
|
32 |
<property name="sizePolicy">
|
|
33 |
<sizepolicy>
|
|
34 |
<hsizetype>1</hsizetype>
|
|
35 |
<vsizetype>4</vsizetype>
|
|
36 |
</sizepolicy>
|
|
37 |
</property>
|
|
38 |
<property name="text">
|
|
39 |
<string>Master Table</string>
|
|
40 |
</property>
|
|
41 |
</widget>
|
|
42 |
<widget class="QLabel" row="2" column="0">
|
|
43 |
<property name="name">
|
|
44 |
<cstring>TextLabel2</cstring>
|
|
45 |
</property>
|
|
46 |
<property name="sizePolicy">
|
|
47 |
<sizepolicy>
|
|
48 |
<hsizetype>1</hsizetype>
|
|
49 |
<vsizetype>4</vsizetype>
|
|
50 |
</sizepolicy>
|
|
51 |
</property>
|
|
52 |
<property name="text">
|
|
53 |
<string>Child Table</string>
|
|
54 |
</property>
|
|
55 |
</widget>
|
|
56 |
<widget class="QSqlTable" row="1" column="0">
|
|
57 |
<column>
|
|
58 |
<property name="text">
|
|
59 |
<string>name</string>
|
|
60 |
</property>
|
|
61 |
<property name="pixmap">
|
|
62 |
<pixmap></pixmap>
|
|
63 |
</property>
|
|
64 |
<property name="field">
|
|
65 |
<string>name</string>
|
|
66 |
</property>
|
|
67 |
</column>
|
|
68 |
<property name="name">
|
|
69 |
<cstring>masterTable</cstring>
|
|
70 |
</property>
|
|
71 |
<property name="sorting">
|
|
72 |
<bool>true</bool>
|
|
73 |
</property>
|
|
74 |
<property name="database" stdset="0">
|
|
75 |
<stringlist>
|
|
76 |
<string>(default)</string>
|
|
77 |
<string>qsql_master</string>
|
|
78 |
</stringlist>
|
|
79 |
</property>
|
|
80 |
</widget>
|
|
81 |
<widget class="QSqlTable" row="3" column="0">
|
|
82 |
<column>
|
|
83 |
<property name="text">
|
|
84 |
<string>Name</string>
|
|
85 |
</property>
|
|
86 |
<property name="pixmap">
|
|
87 |
<pixmap></pixmap>
|
|
88 |
</property>
|
|
89 |
<property name="field">
|
|
90 |
<string>name</string>
|
|
91 |
</property>
|
|
92 |
</column>
|
|
93 |
<property name="name">
|
|
94 |
<cstring>childTable</cstring>
|
|
95 |
</property>
|
|
96 |
<property name="sorting">
|
|
97 |
<bool>true</bool>
|
|
98 |
</property>
|
|
99 |
<property name="database" stdset="0">
|
|
100 |
<stringlist>
|
|
101 |
<string>(default)</string>
|
|
102 |
<string>qsql_child</string>
|
|
103 |
</stringlist>
|
|
104 |
</property>
|
|
105 |
</widget>
|
|
106 |
</grid>
|
|
107 |
</widget>
|
|
108 |
<connections>
|
|
109 |
<slot access="protected" language="C++">newMasterSelection( const QSqlRecord* fields )</slot>
|
|
110 |
</connections>
|
|
111 |
</UI>
|