Use `QApplication` in `PyQt5`

See here for the original answer.

For anyone experiencing this issue in PyQt5, try using QCoreApplication instead and it should work.


Tags

  1. python (Private)
  2. pyqt5 (Private)
  3. stack-overflow (Private)
  4. answer (Private)