for(auto i = 0 ; i < argc ; ++i)
argv[i] = strdup(args[i].toStdString().c_str());
argv[argc] = nullptr;
- pqPVApplicationCore appPV(argc,argv);
- QApplication::instance()->installEventFilter(&appPV);
+ pqPVApplicationCore *appPV = new pqPVApplicationCore(argc,argv);
+ QApplication::instance()->installEventFilter(appPV);
new pqParaViewBehaviors(aViewWindow,aViewWindow);
pqObjectBuilder *builder(pqApplicationCore::instance()->getObjectBuilder());
QObject::connect(builder, &pqObjectBuilder::sourceCreated, this, &SPV3D_ViewModel::onSourceCreated);
// Create Qt application instance: this should be done as early as possible!
// Note: QApplication forces setting locale LC_ALL to system one: setlocale(LC_ALL, "").
+ SetArgcArgv(argc,argv);
Application app(argc, argv);
// Initialize Python (only once)