techartorg / bqt

A Blender add-on to support & manage Qt Widgets in Blender (PySide2)
https://github.com/techartorg/bqt/wiki
Mozilla Public License 2.0
162 stars 23 forks source link

pass sys args to QApplication #26

Closed hannesdelbeke closed 1 year ago

hannesdelbeke commented 1 year ago

this adds support to pass env vars to your QT application

Forgot why I added this exactly😓 Think it might be the foundations for this PR https://github.com/techartorg/bqt/pull/27 Here's an article on why you would want this

hannesdelbeke commented 1 year ago

unsure if we still need this since the PR that relied on it has been closed

hannesdelbeke commented 1 year ago

just found out why we need this again if you dont pass at least an empty list (instead of sys env vars) to the QApp on PyQt5, it'll crash. so current version will work in pyside2, but not pyqt5. and to support passing args we add args and kwargs