[PyQt] Screenshot with no show

2011-06-21 Thread Mads Ipsen
Hi, I have a GLWidget (OpenGL) based window which is used for displaying chemical structures. I would like to use this window to generate thumbnails used as icons for the files containing the chemical structures. I would like to hide this process of icon generation from the user, so is

Re: [PyQt] Suggestion for wrapping std::tr1::shared_ptr

2011-06-21 Thread Phil Thompson
On Mon, 20 Jun 2011 10:03:42 -0400, Shen, Guobao she...@bnl.gov wrote: Hi, Phil and everyone, It is great to find this mailing list. I am recently starting to use SIP to expose a C++ app, which makes heavy use of std::tr1::shared_ptr. I hit some problems to wrap them in SIP. Here is my

Re: [PyQt] PyQt Custom user types with QVariants and QMetaTypes

2011-06-21 Thread Phil Thompson
On Mon, 20 Jun 2011 13:44:47 -0700, Justin Rosen jmylesro...@gmail.com wrote: Hey all, I've been struggling the past few days with trying to wrap my mind around how PyQt has implemented QVariants and QMetaTypes. In short I'm trying to register/declare a custom user type that will be picked

Re: [PyQt] Suggestion for wrapping std::tr1::shared_ptr

2011-06-21 Thread Shen, Guobao
Hi Phil, Thanks for your suggestion, but it said: error: cannot convert 'a_ptr' to 'void*' in argument passing I made an example as attached files to reproduce the error. Any suggestion? Thanks, Guobao On 06/21/2011 05:51 AM, Phil Thompson wrote: On Mon, 20 Jun 2011 10:03:42 -0400, Shen,

[PyQt] Bug report: multiple QApplication instances cause a segfault

2011-06-21 Thread David Townshend
Hi I'm not sure of the appropriate place to file a PyQt bug report, so I hope its ok to send it to this mailing list. The problem is that creating (and quitting) multiple QApplications in succession causes a segfault. This situation tends to occur in unit tests, particularly in testing

Re: [PyQt] Passing image using SIP

2011-06-21 Thread David Boddie
On Mon Jun 20 23:46:27 BST 2011, Jarosław Białas wrote: I wanted to create code fragment that will pass an object containg image or pointer to this object from Python to C++ function. I tried to create function: void loadImage(QImage* image); Then I created sip file, and after compiling and

Re: [PyQt] Screenshot with no show

2011-06-21 Thread David Boddie
On Tue Jun 21 10:40:56 BST 2011, Mads Ipsen wrote: I have a GLWidget (OpenGL) based window which is used for displaying chemical structures. I would like to use this window to generate thumbnails used as icons for the files containing the chemical structures. I would like to hide this

Re: [PyQt] Bug report: multiple QApplication instances cause a segfault

2011-06-21 Thread Algis Kabaila
On Wed, 22 Jun 2011 02:04:25 AM David Townshend wrote: Hi I'm not sure of the appropriate place to file a PyQt bug report, so I hope its ok to send it to this mailing list. The problem is that creating (and quitting) multiple QApplications in succession causes a segfault. This situation