mherrmann / fbs

Create Python GUIs with Qt in minutes
https://build-system.fman.io
GNU General Public License v3.0
3.81k stars 195 forks source link

Adding sys.argv flags to QApplication in ApplicationContext #189

Closed arnauddhaene closed 3 years ago

arnauddhaene commented 4 years ago

I am loading Plotly mesh3d html files into QWebEngine Chromium. When using QApplication (before finding fbs), I passed --ignore-gpu-blacklist in the command line when launching my app. Otherwise, WebGL is not supported and my 3D graphs do not appear.

Now that I am using ApplicationContext, the initialization of my QApplication is done automatically. Is there any way to add my flag to the initialization of QApplication via the fbs structure?

Mac 10.15.3 PyInstaller 3.4 PyQt 5.14.0 Python 3.7

mherrmann commented 4 years ago

You could overwrite ApplicationContext.app as described in the manual.