Re: [PyQt] Construct QVariant from object of user type

2008-04-18 Thread Matt Newell
Here is working code(though not in compilable form) that allows registering python classes(really any python object that has .__name__ attribute) as a QMetaType. Then you use qvariantFromPyObject to construct a qvariant from an instance of the registered type. You use pyObjectFromQVariant to

Re: [PyQt] Cross Compiled PYQT

2008-04-18 Thread David Boddie
On Fri, 11 Apr 2008 17:09:25 -0500, Hal Glenn wrote: > QPaintDevice::metrics: Device has no metric information > Unrecognised metric -1095300876! Just to follow up, this problem seems pretty bizarre. The value passed by another Qt function is completely out of range, making me wonder if there's s

Re: [PyQt] Cross Compiled PYQT

2008-04-18 Thread Hal Glenn
Just the demo's that build when compiling QT. I haven't compiled any programs outside of the QT build process yet. We took this week off working on this project to catch up with some other (paying) work so we could eat. We will get back onto working with this next week. Hal David Boddie wrote

[PyQt] Issues with PyKDE4 and i18n API

2008-04-18 Thread Chusslove Illich
KDE 4 i18n API, with intended usage patterns, is given here: http://api.kde.org/4.0-api/kdelibs-apidocs/kdecore/html/classKLocalizedString.html For the same semantics to be fully supported by the Python bindings, some special care is needed. First, looking at the pykde4/sip/kdecore/klocalizedstr

Re: [PyQt] Cross Compiled PYQT

2008-04-18 Thread David Boddie
On Friday 18 April 2008, Hal Glenn wrote: > > Yep, we had tested it with a few of our simple apps that we had been > writing on the PC before that, and the error was the same. So we went > straight to the shell and started typing to see where the problem started. That's probably the best way to fi

Re: [PyQt] Cross Compiled PYQT

2008-04-18 Thread Hal Glenn
Thanks for the Reply David, Yep, we had tested it with a few of our simple apps that we had been writing on the PC before that, and the error was the same. So we went straight to the shell and started typing to see where the problem started. Thanks for the reply, and thanks for posting your o

Re: [PyQt] question about opacity

2008-04-18 Thread Jan De Coster
Paul, Kubuntu with KDE 3.5.8 and compositing enabled ... tried ur code ... tried to apply it on QMainWindow, QWidget ... all fail kr, Paul Giannaros schreef: What is your operating system? If you're running under Linux, you need a compositing window manager. It should work out-of-the-box on

Re: [PyQt] question about opacity

2008-04-18 Thread Jan De Coster
hi, i tried to add QWidget.setWindowOpacity(self, 0.0) but it no opacity is applied to the window kr, Jan De Coster Paul Giannaros schreef: Implant it? On Fri, Apr 18, 2008 at 1:46 AM, Jan De Coster <[EMAIL PROTECTED]> wrote: ok i figured that out ... but how do i implant it ?

Re: [PyQt] Construct QVariant from object of user type

2008-04-18 Thread Arve Knudsen
On 4/18/08, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Friday 18 April 2008, Arve Knudsen wrote: > > On 4/17/08, Arve Knudsen <[EMAIL PROTECTED]> wrote: > > > On 4/17/08, Matt Newell <[EMAIL PROTECTED]> wrote: > > > > On Wednesday 16 April 2008 14:18:26 Arve Knudsen wrote: > > > > > On We

Re: [PyQt] Construct QVariant from object of user type

2008-04-18 Thread Phil Thompson
On Friday 18 April 2008, Arve Knudsen wrote: > On 4/17/08, Arve Knudsen <[EMAIL PROTECTED]> wrote: > > On 4/17/08, Matt Newell <[EMAIL PROTECTED]> wrote: > > > On Wednesday 16 April 2008 14:18:26 Arve Knudsen wrote: > > > > On Wed, Apr 16, 2008 at 11:33 AM, Phil Thompson > > > > > > > > <[EM

Re: [PyQt] Construct QVariant from object of user type

2008-04-18 Thread Arve Knudsen
On 4/17/08, Arve Knudsen <[EMAIL PROTECTED]> wrote: > On 4/17/08, Matt Newell <[EMAIL PROTECTED]> wrote: > > On Wednesday 16 April 2008 14:18:26 Arve Knudsen wrote: > > > On Wed, Apr 16, 2008 at 11:33 AM, Phil Thompson > > > > > > <[EMAIL PROTECTED]> wrote: > > > > On Wednesday 16 April 20

Re: [PyQt] Looking for complex tree view example

2008-04-18 Thread David Boddie
On Fri Apr 18 08:29:23 BST 2008, Aaron Digulla wrote: > Quoting David Boddie : > > > You could port the C++ Editable Tree Model example from the Qt package, > > but that might not be dynamic enough for your purposes. > > > > Another example of the model/view classes in Python is the PyPI Browser >

Re: [PyQt] QT Designer for Custom Widgets.

2008-04-18 Thread objectref
Hey David, thanks for the reply! I know this stuff about "promotion" in code, i just wanted to figure out how i can do it in Designer. Glad to know that next version of it will allow for this stuff! Thanks again! David Boddie wrote: On Wed, 16 Apr 2008 13:10:01 +0300, objectref wrote:

Re: [PyQt] Looking for complex tree view example

2008-04-18 Thread Aaron Digulla
Quoting David Boddie <[EMAIL PROTECTED]>: You could port the C++ Editable Tree Model example from the Qt package, but that might not be dynamic enough for your purposes. Another example of the model/view classes in Python is the PyPI Browser application I started writing almost two years ago(!)

[PyQt] Modal QMainWindow

2008-04-18 Thread ARCHER, Thomas
A quick query someone might be able to help me with. I've got a QMainWindow (displaying vtk graphics), which spawns a new QMainWindow (displaying further graphics). I've managed to make this window modal, by setting the window flags, but what I'd really like is for it to block code flow until it