main.cpp 501 B

1234567891011121314151617181920212223242526
  1. // Thomas Nagy, 2016 (ita)
  2. #include <QApplication>
  3. //#include <QString>
  4. //#include "mainwindow.h"
  5. #include "ui_but.h"
  6. int main(int argc, char **argv)
  7. {
  8. Q_INIT_RESOURCE(res);
  9. QApplication app(argc, argv);
  10. QWidget window;
  11. Ui::Form ui;
  12. ui.setupUi(&window);
  13. window.show();
  14. return app.exec();
  15. /*
  16. MainWindow window;
  17. if (argc == 2)
  18. window.openFile(argv[1]);
  19. else
  20. window.openFile(":/files/bubbles.svg");
  21. window.show();
  22. return app.exec();
  23. */
  24. }