Re: [PyQt] sip fails with [CLASSNAME] has not been defined

2012-05-01 Thread tuxor1337
I think, I can answer my own question. But only with respect to the _reason_ for this behaviour. I have to admit, that I don't like this behaviour: The problem is the namespace ui. Because OnyxDialog is defined in that namespace, it has to be referred to as ui::OnyxDialog in

[PyQt] Segmentation fault. What could be the cause?

2012-05-01 Thread tuxor1337
| QMessageBox.Yes) Can this be caused by the TransferThis annotation? Or by the C++ reference to the QString? Or do you see something else, that's wrong with this? ## If you want to have a closer look at the project, see here: https://github.com/tuxor1337/PyOnyx The problematic line

Re: [PyQt] Segmentation fault. What could be the cause?

2012-05-01 Thread tuxor1337
Thanks, that worked :) Now everything is running fine. You definitely need to remove all the /TransferThis/ except for the one on the parent argument. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] sip fails with [CLASSNAME] has not been defined

2012-05-01 Thread tuxor1337
You are right, that's indeed a rather obvious option. Thanks again for your patience :) You use SIP to describe the bindings you want to create - this is not necessarily the same as the API of the underlying library. In other words you don't teach SIP to cut off the ui from the namespace, just

[PyQt] SIP fails with syntax error on simple class inheritance

2012-04-30 Thread tuxor1337
Why does the attached sip-file always fail to be sipped with the following error message: sip: my_dialog.sip:15: syntax error (line 15 is class MyDialog : public QDialog {) I tried to use a configure.py or directly call sip command line, but it always fails with the same error message.

Re: [PyQt] SIP fails with syntax error on simple class inheritance

2012-04-30 Thread tuxor1337
Thanks for your quick response! What version of SIP are you using? Assuming it's older than v4.13.1 then you need to remove the public (as it says in the documentation for your version). Yes, you are right. I'm using 4.12.2, so next time I'm going to refer to the documentation provided with

[PyQt] sip fails with [CLASSNAME] has not been defined

2012-04-30 Thread tuxor1337
Hi all, maybe somebody can help me with this. I'm using SIP 4.12.2. My configure.py script is executing the following sip command line: /opt/python/bin/sip -c . -b ui/ui.sbf -I /opt/python/share/sip/PyQt4 -x PyQt_Accessibility -x PyQt_Cursor -x PyQt_ImageFormat_JPEG -x PyQt_Picture -x