#ifndef MAIN_WINDOW_H#define MAIN_WINDOW_H#include <QWidget>#include <QPushButton>class main_window : public QWidget{ Q_OBJECTpublic: main_window(QWidget *parent=0); ~main_window();};#endif // MAIN_WINDOW_H
#include "main_window.h"main_window::main_window(QWidget *parent):QWidget(parent){}main_window::~main_window(){}
#include <QApplication>#include "main_window.h"int main (int argc,char *argv[]){ QApplication dbfQT(argc,argv); main_window wndMain; wndMain.show(); return dbfQT.exec();}