53int main(
int argc,
char* argv[]) {
56 auto gopts = std::make_shared<GOptions>(argc, argv,
GOptions(
"hello"));
60 auto gui = gopts->getSwitch(
"gui");
61 auto timeout = gopts->getScalarDouble(
"tt");
62 int ret = EXIT_SUCCESS;
65 QApplication* app =
nullptr;
67 app =
new QApplication(argc, argv);
72 std::vector<std::string> bicons;
73 bicons.emplace_back(
":/images/firstButton");
74 bicons.emplace_back(
":/images/secondButton");
82 QTimer::singleShot(timeout, [] {
83 QCoreApplication::quit();
86 ret = QApplication::exec();