Important: Please read the Qt Code of Conduct -

Creating QApplication object

  • Hey All,
    I tried to create a QApplication in a python wrapped class and am
    getting a seg fault. I know about PyQt and will probably move in
    that direction but am curious now what the problem is and what
    happens on creation. I've read the docs and it doesn't seem to
    satisfy my curiosity.

    Here's the simple class ( contrived for this example ) :
    And here are the first 20 lines of the traceback :

    The python script is pretty simple too :
    #!/usr/bin/env python
    import python_qt as pyqt
    import sys
    qapp = pyqt.QtApp( sys.argv )

    This is somehow solved in PyQt, so is not impossible ( and maybe I
    should have posted there ), but this topic seemed a little more general.

    Any insight would be greatly appreciated.

Log in to reply