Pass argc/argv to Qt before passing it to ecl
QApplication will remove arguments it recognizes but ecl will not detect this and might reference a no more existent argument
This commit is contained in:
parent
14a1d07425
commit
ec089749b8
1 changed files with 3 additions and 2 deletions
|
|
@ -55,10 +55,11 @@ int catch_all_qexec() {
|
|||
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
EQL::ini(argc, argv); // best initialized here
|
||||
|
||||
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); // for Qt WebEngine
|
||||
QApplication qapp(argc, argv);
|
||||
|
||||
EQL::ini(argc, argv); // best initialized here
|
||||
|
||||
QStringList args(QCoreApplication::arguments());
|
||||
if(args.contains("-h") || (args.contains("--help"))) {
|
||||
std::cout << "Usage: eql5 [file] [-qtpl] [-qgui] [-quic file.ui [:ui-package] [:maximized]] [-slime] [-norc] [-debug-on-error]" << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue