Commits

opampg committed 91ce8e6

added MainWindow class,main.cpp and main.qrc file.

Comments (0)

Files changed (5)

src/CMakeLists.txt

 SET(TEST_DIR ${PROJECT_SOURCE_DIR}/src/test)
 SET(RESOURCES_DIR ${PROJECT_SOURCE_DIR}/src/resources)
 
-SET(MSRC)
+SET(MSRC
+	${SRC_DIR}/main.cpp
+	${SRC_DIR}/MainWindow.cpp
+	)
 
-SET(MHED)
+SET(MHED
+	${SRC_DIR}/MainWindow.hpp
+	)
 
 QT4_WRAP_CPP(HMOD ${MHED})
 QT4_ADD_RESOURCES(QRC ${SRC_DIR}/main.qrc)

src/MainWindow.cpp

+#include"MainWindow.hpp"
+
+MainWindow::MainWindow()
+{
+
+}

src/MainWindow.hpp

+#pragma onece
+#include<QMainWindow>
+
+class MainWindow : public QMainWindow
+{
+	MainWindow();
+}
+#include<QApplication>
+#include"MainWindow.hpp"
+
+int main(int argc,char* argv[])
+{
+	QApplication webpviewer(argc,argv);
+
+	return webpviewer.exec();
+}
+<RCC>
+</RCC>