Skip to content

Commit 9663ca3

Browse files
committed
update QT demo UI and DEMO gif
1 parent de0ac3b commit 9663ca3

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

examples/QT/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Demo shot](https://cldup.com/Da_Yv43-TO.gif)
1+
![Demo shot](https://cldup.com/98tHyoJJE7.gif)
22

33
In this tutorial we’ll learn how to create a QT chat application that communicates with a [Socket.IO Node.JS chat server](https://github.com/Automattic/socket.io/tree/master/examples/chat).
44

examples/QT/SioChatDemo/mainwindow.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ MainWindow::MainWindow(QWidget *parent) :
2323
m_dialog()
2424
{
2525
ui->setupUi(this);
26-
2726
using std::placeholders::_1;
2827
using std::placeholders::_2;
2928
using std::placeholders::_3;

examples/QT/SioChatDemo/mainwindow.ui

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,40 @@
77
<x>0</x>
88
<y>0</y>
99
<width>366</width>
10-
<height>577</height>
10+
<height>549</height>
1111
</rect>
1212
</property>
13+
<property name="sizePolicy">
14+
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
15+
<horstretch>0</horstretch>
16+
<verstretch>0</verstretch>
17+
</sizepolicy>
18+
</property>
1319
<property name="windowTitle">
1420
<string>Socket.IO Chat</string>
1521
</property>
22+
<property name="unifiedTitleAndToolBarOnMac">
23+
<bool>false</bool>
24+
</property>
1625
<widget class="QWidget" name="centralWidget">
1726
<widget class="QListWidget" name="listView">
1827
<property name="enabled">
1928
<bool>false</bool>
2029
</property>
2130
<property name="geometry">
2231
<rect>
23-
<x>10</x>
32+
<x>8</x>
2433
<y>11</y>
25-
<width>351</width>
34+
<width>350</width>
2635
<height>461</height>
2736
</rect>
2837
</property>
38+
<property name="sizePolicy">
39+
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
40+
<horstretch>0</horstretch>
41+
<verstretch>0</verstretch>
42+
</sizepolicy>
43+
</property>
2944
<property name="sizeIncrement">
3045
<size>
3146
<width>0</width>
@@ -39,9 +54,9 @@
3954
</property>
4055
<property name="geometry">
4156
<rect>
42-
<x>10</x>
43-
<y>485</y>
44-
<width>351</width>
57+
<x>8</x>
58+
<y>480</y>
59+
<width>350</width>
4560
<height>21</height>
4661
</rect>
4762
</property>

0 commit comments

Comments
 (0)