mirror of https://git.wownero.com/dsc/mxe.git
parent
6004e1e00a
commit
dbe8eef5f5
|
@ -4,14 +4,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include "ui_qt-test.h"
|
|
||||||
|
#include "qt-test.hpp"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
QMainWindow w;
|
MainWindow w;
|
||||||
Ui::MainWindow u;
|
|
||||||
u.setupUi(&w);
|
|
||||||
w.show();
|
w.show();
|
||||||
a.aboutQt();
|
a.aboutQt();
|
||||||
return a.exec();
|
return a.exec();
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QtGui>
|
||||||
|
|
||||||
|
#include "ui_qt-test.h"
|
||||||
|
|
||||||
|
class MainWindow : public QMainWindow {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
MainWindow(QWidget* parent = 0):
|
||||||
|
QMainWindow(parent),
|
||||||
|
ui(new Ui::MainWindow)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
~MainWindow() {
|
||||||
|
delete ui;
|
||||||
|
}
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void testSignal();
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void testSlot() {
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::MainWindow* ui;
|
||||||
|
};
|
|
@ -5,6 +5,7 @@ greaterThan(QT_MAJOR_VERSION, 4): TARGET = test-qt5
|
||||||
else: TARGET = test-qt
|
else: TARGET = test-qt
|
||||||
QT += network sql
|
QT += network sql
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
HEADERS += qt-test.hpp
|
||||||
SOURCES += qt-test.cpp
|
SOURCES += qt-test.cpp
|
||||||
FORMS += qt-test.ui
|
FORMS += qt-test.ui
|
||||||
RESOURCES += qt-test.qrc
|
RESOURCES += qt-test.qrc
|
||||||
|
|
Loading…
Reference in New Issue