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

crash in PySide2 if QApplication forgotten

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 1.1.1, dev
    • Fix Version/s: dev
    • Component/s: PySide
    • Labels:
    • Environment:
      Microsoft Windows XP [Version 5.1.2600], Python 2.7.2

      Description

      This was edited by Christian Tismer:
      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

        Attachments

          Issue Links

          For Gerrit Dashboard: PYSIDE-156
          # Subject Branch Project Status CR V

            Activity

              People

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

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes