Re: [PyQt] Issue with pyqtSignal

2011-11-04 Thread Brett Stottlemyer
If the functions you are connecting are in python, you can use PyQt_PyObject as the type. That just passes the reference around, and everything works fine. I'm not sure about a good solution if you need to handle the type in C/C++. Brett -Original Message- From: pyqt-boun...@riverbankco

[PyQt] Missing method in QGLShaderProgram?

2011-04-02 Thread Brett Stottlemyer
Phil, I am trying to convert the textures.pyw example to run using shaders like the newer version of the example in Qt. However, I've hit a problem in that the setAttributeArray method of QGLShaderProgram used in the example is not available in PyQt. Is this a bug? Brett _

Re: [PyQt] Bug in setEventFilter?

2011-03-21 Thread Brett Stottlemyer
Phil, Great support. Appears to work well. Brett -Original Message- From: Phil Thompson [mailto:p...@riverbankcomputing.com] Sent: Saturday, March 19, 2011 10:44 AM To: Brett Stottlemyer Cc: pyqt@riverbankcomputing.com Subject: Re: [PyQt] Bug in setEventFilter? On Sat, 19 Mar 2011 10

[PyQt] Bug in setEventFilter?

2011-03-18 Thread Brett Stottlemyer
I'm trying to process WM_INPUT in an application. I know that in Qt you need to use QAbstractEventDispatcher and setEventFilter to get the messages. However, when I try to use setEventFilter, I get an Attribute error, 'QAbstractEventDispatcher' object has no attribute 'setEventFilter'. An example

[PyQt] Unable to get QDeclarativeImageProvider to work

2010-12-15 Thread Brett Stottlemyer
All, I am unable to get QDeclarativeImageProvider working. When I run the attached code (on Win7) with > python qmltest.py it locks up and I get a "python has stopped responding" message. Is this a bug? It looks like the size parameter (in C++) is a pointer that is populated internally and ret

[PyQt] How does sip.setapi("QString",2) work with translations?

2010-11-27 Thread Brett Stottlemyer
Hi, all- I'd like to use sip.setapi("QString",2), but I'm using internationalization as well and it is giving me some trouble. If I try: > qApp.translate("test","Internationalize") I get Unicode "Internationalize" as the result (as expected) When I try: > qApp.translate("test","Internationalize

Re: [PyQt] QtNetwork import problem with PyQt 4.8 and 4.8.1

2010-11-09 Thread Brett Stottlemyer
> The PyQt v4.8 Windows installers include the OpenSSL DLLs which > QtNetwork.pyd is linked against, so you probably need to add them to the > list of things that py2exe should bundle. > > Phil That was it. Thanks! For anyone else, the files needed are libeay32.dll and ssleay32.dll. Brett

[PyQt] QtNetwork import problem with PyQt 4.8 and 4.8.1

2010-11-09 Thread Brett Stottlemyer
I've got a PyQt application that I'm converting to an exe using py2exe. When I install the app on a new machine and run it, I get the following exception. File "C:\\hub\Application.py", line 29, in from PyQt4.QtNetwork import * File "PyQt4\QtNetwork.pyc", line 12, in File "PyQt4\Qt