[PyQt] sip: add new annotation for specifying ownership of results of virtual methods

2012-09-03 Thread Mathias . Born
Hi Phil, I've come across a case which I think deserves its own function annotation. This is the proplem: I'm embedding Python code into a C++ app. There are two wrapped classes: class Netlister { virtual ~Netlister(); ... }; and class Project { virtual ~Project(); ...

Re: [PyQt] sip: extend exception support

2012-09-03 Thread Phil Thompson
On Mon, 27 Aug 2012 12:10:23 -0700, Matt Newell wrote: >> >> The difference is the access to the (not necessarily present) objects. >> How >> are you getting these? >> >> Phil > > Here's the patch against a quite old hg checkout. After several more iterations (ok, rewrites) the implementation

Re: [PyQt] Convert string to QString

2012-09-03 Thread Vincent Vande Vyvre
On 03/09/12 05:36, Python.py wrote: > I'm trying to play a video. But for that I need to choose the video. For > this, if I use QtGui.QFileDialog.getOpenFileName () I can select a video and > executar.O my problem is that I do not want to use the > QtGui.QFileDialog.getOpenFileName (), I already re