Skip to content

Commit ad2e08a

Browse files
添加文件
1 parent c84809a commit ad2e08a

File tree

3 files changed

+63
-1
lines changed

3 files changed

+63
-1
lines changed

qt_imagedragdrop/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
#include "mainwindow.h"
22
#include <QApplication>
33

4+
#include <iostream>
5+
6+
47
int main(int argc, char *argv[])
58
{
69
QApplication a(argc, argv);
710
MainWindow w;
811
w.show();
912

13+
14+
1015
return a.exec();
1116
}

qt_imagedragdrop/qt_imagedragdrop.pro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ HEADERS += \
3232
mainwindow.h
3333

3434
FORMS += \
35-
mainwindow.ui
35+
mainwindow.ui \
36+
wfor.ui
3637

3738
# Default rules for deployment.
3839
qnx: target.path = /tmp/$${TARGET}/bin

qt_imagedragdrop/wfor.ui

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>Form</class>
4+
<widget class="QWidget" name="Form">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>541</width>
10+
<height>343</height>
11+
</rect>
12+
</property>
13+
<property name="windowTitle">
14+
<string>Form</string>
15+
</property>
16+
<layout class="QGridLayout" name="gridLayout">
17+
<item row="0" column="0">
18+
<layout class="QVBoxLayout" name="verticalLayout">
19+
<item>
20+
<layout class="QHBoxLayout" name="horizontalLayout">
21+
<item>
22+
<spacer name="horizontalSpacer">
23+
<property name="orientation">
24+
<enum>Qt::Horizontal</enum>
25+
</property>
26+
<property name="sizeHint" stdset="0">
27+
<size>
28+
<width>40</width>
29+
<height>20</height>
30+
</size>
31+
</property>
32+
</spacer>
33+
</item>
34+
<item>
35+
<widget class="QPushButton" name="pushButton">
36+
<property name="text">
37+
<string>PushButton</string>
38+
</property>
39+
</widget>
40+
</item>
41+
</layout>
42+
</item>
43+
<item>
44+
<widget class="QPushButton" name="pushButton_2">
45+
<property name="text">
46+
<string>PushButton</string>
47+
</property>
48+
</widget>
49+
</item>
50+
</layout>
51+
</item>
52+
</layout>
53+
</widget>
54+
<resources/>
55+
<connections/>
56+
</ui>

0 commit comments

Comments
 (0)