2023-04-28 15:53:07 +05:00
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QMainWindow>
|
2023-05-04 13:17:42 +05:00
|
|
|
#include <QTimer>
|
2023-04-28 15:53:07 +05:00
|
|
|
#include "ui_mainwindow.h"
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
QMainWindow w;
|
|
|
|
Ui::MainWindow ui;
|
|
|
|
ui.setupUi(&w);
|
2023-05-04 13:17:42 +05:00
|
|
|
QTimer timer;
|
|
|
|
w.connect(&timer, SIGNAL(timeout()), ui.openGLWidget, SLOT(paintGL()));
|
|
|
|
timer.start(16);
|
2023-04-28 15:53:07 +05:00
|
|
|
w.show();
|
|
|
|
return app.exec();
|
|
|
|
}
|