February 3, 2012

olivas olivas
Lab Rat
1 posts

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 ) : http://codepad.org/R259gfvs
And here are the first 20 lines of the traceback : http://codepad.org/jVpUIxWs

The python script is pretty simple too :

  1. #!/usr/bin/env python
  2. import python_qt as pyqt
  3. import sys
  4. 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.
Thanks,
Alex.

0 replies

 
  ‹‹ Plug and Paint using PySide/PyQT?      How to use a custom widget as an ItemDelegate ››

You must log in to post a reply. Not a member yet? Register here!