[PyQt] Re: join() can't handle a QString

2008-06-23 Thread Alberto Berti
> "Chris" == Christoph Burgmer <[EMAIL PROTECTED]> writes: Chris> QString is pretty much well integrated as much as I Chris> understand. I can write "print QString('foo')" or Chris> "len(QString('bar'))". It will always be cast to the str Chris> type (btw, why not to unicode?).

[PyQt] join() can't handle a QString

2008-06-23 Thread Christoph Burgmer
QString is pretty much well integrated as much as I understand. I can write "print QString('foo')" or "len(QString('bar'))". It will always be cast to the str type (btw, why not to unicode?). Seeing today that the following wouldn't work makes me ask if that was forgotten or if there is a story

[PyQt] Re: /NewThread/, and Python stack in Visual Studio

2008-06-23 Thread Kevin Watters
> > Anyone lucky enough to be using Visual Studio for their SIP projects have > > any > > advice on the Python stack trace issue? > > Not that I know of, but please let me know if you find out something. The best I could come up with was to wrap my main loop in an SEH block (lookup __try and __e

Re: [PyQt] Re: Virtual methods and an extra reference

2008-06-23 Thread Sundance
Phil wrote: > I will look at this properly when I have the time. Thank you, Phil -- it's appreciated. In the meanwhile, for those who may come across this thread in the future, here's a working workaround (as opposed to the almost-working- but-not-quite one from earlier *g*): 1) Rename the pro

Re: [PyQt] References returned from C++

2008-06-23 Thread Arve Knudsen
On 6/22/08, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Sun, 22 Jun 2008 12:53:41 +0200, "Arve Knudsen" <[EMAIL PROTECTED]> > wrote: > > > How does one normally treat references returned by SIP-wrapped C++ > > objects? I just determined a segmentation fault in my program resulted > > from an o

Re: [PyQt] another pyuic icon bug

2008-06-23 Thread Phil Thompson
On Mon, 16 Jun 2008 23:52:31 -0700, Kovid Goyal <[EMAIL PROTECTED]> wrote: > Attached is a ui file that sets different icons for various push buttons. > However, with pyuic4 (Python User Interface Compiler > 4.4.3-snapshot-20080612 > for Qt version 4.4.0) all the push buttons have the same icon.

[PyQt] Qt plugins in frozen windows applications

2008-06-23 Thread V. Armando Sole
Hello, I am trying to use some of the qt plugins in a frozen python application. In particular I am interesed on the image format plugins (jpeg, ...). I have tried putting them in the same directory as the executable but qt keeps trying to get them from the hard coded paths. Following the do

Re: [PyQt] bug in pyuic4?

2008-06-23 Thread Phil Thompson
On Sun, 22 Jun 2008 12:50:12 + (GMT), Gianni Valdambrini <[EMAIL PROTECTED]> wrote: > Hi, > > There seems to be a problem with pyuic4 and generating the code when using > a QListWidget with stylesheet font-family. > > The ui and generated py file are attached. > > Thanks in advance. Should

Re: [PyQt] qvariant and python objects

2008-06-23 Thread Phil Thompson
On Sun, 22 Jun 2008 15:21:07 -0700, "Adam Tenderholt" <[EMAIL PROTECTED]> wrote: > I've created a QVariant object by passing a Python object > (specifically, a list of numpy arrays) to its constructor, and I'm > trying to have it read into a QDataStream object. Unfortunately, it > doesn't work and