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

crash in PySide2 if QApplication forgotten

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

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

          Activity

            People

              ctismer Christian Tismer
              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