blob: 4c4f1fde3a451c813129969ac35fefde96854312 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0" stdsetdef="1">
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>MasterChildWindowBase</class>
<widget class="QWidget" name="MasterChildWindowBase">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>565</width>
<height>659</height>
</rect>
</property>
<property name="windowTitle">
<string>Qt Master-Child Example</string>
</property>
<layout class="QGridLayout">
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="TextLabel1">
<property name="sizePolicy">
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>4</vsizetype>
</sizepolicy>
</property>
<property name="text">
<string>Master Table</string>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="TextLabel2">
<property name="sizePolicy">
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>4</vsizetype>
</sizepolicy>
</property>
<property name="text">
<string>Child Table</string>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QSqlTable" name="masterTable">
<property name="sorting">
<bool>true</bool>
</property>
<property name="database" stdset="0">
<stringlist>
<string>(default)</string>
<string>qsql_master</string>
</stringlist>
</property>
<column>
<property name="text">
<string>name</string>
</property>
<property name="pixmap">
<pixmap/>
</property>
<property name="field">
<string>name</string>
</property>
</column>
</widget>
</item>
<item row="3" column="0">
<widget class="QSqlTable" name="childTable">
<property name="sorting">
<bool>true</bool>
</property>
<property name="database" stdset="0">
<stringlist>
<string>(default)</string>
<string>qsql_child</string>
</stringlist>
</property>
<column>
<property name="text">
<string>Name</string>
</property>
<property name="pixmap">
<pixmap/>
</property>
<property name="field">
<string>name</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
</ui>
|