vitimiti

MatVGL put into work.

Nov 21st, 2015
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include "matvglapp.h"
  2. #include "matvglwindow.h"
  3.  
  4. using namespace MatVGL;
  5.  
  6. int main(int argc, char *argv[]) {
  7.   DesktopApp *app = new DesktopApp(argc, argv);
  8.  
  9.   DesktopWindow *window = new DesktopWindow(
  10.       DesktopWindow::Title("Test Window"), DesktopWindow::Position::Center,
  11.       DesktopWindow::Width(800), DesktopWindow::Height(600),
  12.       DesktopWindow::Mode::Fixed);
  13.  
  14.   window->start();
  15.  
  16.   int executionValue = app->exec();
  17.   delete window;
  18.   delete app;
  19.   app = nullptr;
  20.   window = nullptr;
  21.  
  22.   return executionValue;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment