Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-156

crash in PySide2 if QApplication forgotten

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future version
    • 6.5.2
    • PySide
    • Microsoft Windows XP [Version 5.1.2600], Python 2.7.2

      This was edited by ctismer:
      The content mentioned here is not interesting. The fact that PySide2 simply crashes
      when you forget to create QApplication is the error where I re-targeted this.
      ---------------------------------------------------------------------
      The following code crashes :

      from PySide.QtGui import *
      QFontDatabase.addApplicationFont("/WINDOWS/Fonts/verdana.ttf")
      

      I've tried with another font same result. I've tried addApplicationFontFromData and it crashes as well. Double-checked that the font file exists.

      Will give it a try on Linux soon.

      Stefan

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ctismer Christian Tismer
            wiz21 Stefan Champailler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes