[PyQt] QtWebKit to PDF rendering

2009-09-22 Thread Dominic Jacobssen
Hi all. I'm a newbie to Qt (but not to Python), and I wanted to ask for "next step" guidance. I want to generate PDF reports by pointing a HTML-to-PDF renderer at a server that spits out well-formed XHTML with inline SVG. I know that that's a can of worms right there, but I've managed to get a si

[PyQt] Dialog Window's Position Offset

2009-09-22 Thread Brent Villalobos
I'm confused about the position of dialogs that do not have parents. I wrote a small PyQt application that is a push button that launches a non-modal, non-parented QDialog. When you show the dialog and then close it without explicitly moving it, then it reports the wrong position. However, t

Re: [PyQt] What am I doing wrong with QWidget?

2009-09-22 Thread Phil Thompson
On Sat, 19 Sep 2009 23:09:52 +0200, David Boddie wrote: > On Sat Sep 19 19:27:06 BST 2009, Kurt Schwarz wrote: > >> I'm having problems displaying a widget as a child inside a window. The >> code below should create a window that is 500 x 500 with a red box inside >> 400 x 400. >> >> If I replace

Re: uic.load (was: [PyQt] Re: Problem with latest PyQt4 snapshot)

2009-09-22 Thread Phil Thompson
On Tue, 22 Sep 2009 20:35:21 +0200, Arnold Krille wrote: > On Tuesday 22 September 2009 19:57:46 Phil Thompson wrote: >> On Tue, 22 Sep 2009 19:42:27 +0200, Arnold Krille >> > on a side note: Is it possible to have uic.load() respect the >> > python-library >> > dirs? >> I'm not convinced it's a

RE: uic.load (was: [PyQt] Re: Problem with latest PyQt4 snapshot)

2009-09-22 Thread Peter Shinners
Please let uic.load take only a simple file path. Anyone can wrap whatever resource finding mechanism they want on top. -Original Message- From: pyqt-boun...@riverbankcomputing.com [mailto:pyqt-boun...@riverbankcomputing.com] On Behalf Of Arnold Krille Sent: Tuesday, September 22, 2009 1

[PyQt] cannot propagate custom events to parent widget

2009-09-22 Thread Thomas Espenhain
Hello, I'm confused about the event propagation to parent widget with custom events. The documentation says setting event.ignore() will be pass the event to the parent widget. It runs great for MouseButtonPress but not for my custom event (see the following code snipe) ... # here the cust

Re: [PyQt] Problem catching exception from SIP-wrapped function

2009-09-22 Thread Arve Knudsen
On Tue, Sep 22, 2009 at 7:27 PM, Phil Thompson wrote: > On Tue, 22 Sep 2009 19:17:12 +0200, Arve Knudsen > wrote: > > On Tue, Sep 22, 2009 at 6:28 PM, Phil Thompson > > wrote: > > > >> On Mon, 21 Sep 2009 18:40:35 +0200, Arve Knudsen > > >> wrote: > >> > Hi > >> > > >> > I have run into this pro

Re: uic.load (was: [PyQt] Re: Problem with latest PyQt4 snapshot)

2009-09-22 Thread Arnold Krille
On Tuesday 22 September 2009 19:57:46 Phil Thompson wrote: > On Tue, 22 Sep 2009 19:42:27 +0200, Arnold Krille > > on a side note: Is it possible to have uic.load() respect the > > python-library > > dirs? > I'm not convinced it's a good idea... Security issues? I think it would be quite cool if

Re: [PyQt] Problem catching exception from SIP-wrapped function

2009-09-22 Thread Arve Knudsen
Sorry, don't know how the last mail got sent twice. Arve On Tue, Sep 22, 2009 at 8:28 PM, Arve Knudsen wrote: > On Tue, Sep 22, 2009 at 7:27 PM, Phil Thompson < > p...@riverbankcomputing.com> wrote: > >> On Tue, 22 Sep 2009 19:17:12 +0200, Arve Knudsen >> wrote: >> > On Tue, Sep 22, 2009 at 6:2

Re: [PyQt] Problem catching exception from SIP-wrapped function

2009-09-22 Thread Arve Knudsen
On Tue, Sep 22, 2009 at 7:27 PM, Phil Thompson wrote: > On Tue, 22 Sep 2009 19:17:12 +0200, Arve Knudsen > wrote: > > On Tue, Sep 22, 2009 at 6:28 PM, Phil Thompson > > wrote: > > > >> On Mon, 21 Sep 2009 18:40:35 +0200, Arve Knudsen > > >> wrote: > >> > Hi > >> > > >> > I have run into this pro

Re: [PyQt] Re: Problem with latest PyQt4 snapshot

2009-09-22 Thread Detlev Offenbach
On Dienstag, 22. September 2009, Phil Thompson wrote: > On Tue, 22 Sep 2009 18:42:47 +0200, Detlev Offenbach > > wrote: > > On Dienstag, 22. September 2009, Phil Thompson wrote: > >> On Sat, 19 Sep 2009 19:47:00 +0200, Detlev Offenbach > >> > >> wrote: > >> > Hi Phil, > >> > > >> > pyuic4 of the

Re: uic.load (was: [PyQt] Re: Problem with latest PyQt4 snapshot)

2009-09-22 Thread Phil Thompson
On Tue, 22 Sep 2009 19:42:27 +0200, Arnold Krille wrote: > Hi, > > On Tuesday 22 September 2009 19:04:16 Phil Thompson wrote: >> On Tue, 22 Sep 2009 18:42:47 +0200, Detlev Offenbach >> wrote: >> > On Dienstag, 22. September 2009, Phil Thompson wrote: >> >> If you don't have control over the vers

uic.load (was: [PyQt] Re: Problem with latest PyQt4 snapshot)

2009-09-22 Thread Arnold Krille
Hi, On Tuesday 22 September 2009 19:04:16 Phil Thompson wrote: > On Tue, 22 Sep 2009 18:42:47 +0200, Detlev Offenbach > wrote: > > On Dienstag, 22. September 2009, Phil Thompson wrote: > >> If you don't have control over the version of PyQt your users are using > >> then you should run pyuic as p

Re: [PyQt] Problem catching exception from SIP-wrapped function

2009-09-22 Thread Phil Thompson
On Tue, 22 Sep 2009 19:17:12 +0200, Arve Knudsen wrote: > On Tue, Sep 22, 2009 at 6:28 PM, Phil Thompson > wrote: > >> On Mon, 21 Sep 2009 18:40:35 +0200, Arve Knudsen >> wrote: >> > Hi >> > >> > I have run into this problem where a C++ exception is not correctly >> > translated into Python on L

Re: [PyQt] Problem catching exception from SIP-wrapped function

2009-09-22 Thread Arve Knudsen
On Tue, Sep 22, 2009 at 6:28 PM, Phil Thompson wrote: > On Mon, 21 Sep 2009 18:40:35 +0200, Arve Knudsen > wrote: > > Hi > > > > I have run into this problem where a C++ exception is not correctly > > translated into Python on Linux (it works under VC++ on Windows). The > > exception is apparentl

Re: [PyQt] Re: Problem with latest PyQt4 snapshot

2009-09-22 Thread Phil Thompson
On Tue, 22 Sep 2009 18:42:47 +0200, Detlev Offenbach wrote: > On Dienstag, 22. September 2009, Phil Thompson wrote: >> On Sat, 19 Sep 2009 19:47:00 +0200, Detlev Offenbach >> >> wrote: >> > Hi Phil, >> > >> > pyuic4 of the latest snapshot is a bit buggy. It does wrap the value >> > set >> > via >

Re: [PyQt] Re: Problem with latest PyQt4 snapshot

2009-09-22 Thread Detlev Offenbach
On Dienstag, 22. September 2009, Phil Thompson wrote: > On Sat, 19 Sep 2009 19:47:00 +0200, Detlev Offenbach > > wrote: > > Hi Phil, > > > > pyuic4 of the latest snapshot is a bit buggy. It does wrap the value set > > via > > QObject.setProperty(...) into a QVariant. That makes code generated with

Re: [PyQt] Problem catching exception from SIP-wrapped function

2009-09-22 Thread Phil Thompson
On Mon, 21 Sep 2009 18:40:35 +0200, Arve Knudsen wrote: > Hi > > I have run into this problem where a C++ exception is not correctly > translated into Python on Linux (it works under VC++ on Windows). The > exception is apparently not caught as it should, but looking at the > SIP-generated source

[PyQt] Dock widget and promoted widget

2009-09-22 Thread Giorgio Luciano
I'm continuiung the developing of the gui and I've to admit that pyqt is really fun to use. Folowing tutorials around I'm going the editor way. I mean I make the ui files, compile them, have a separate file that call the ui.py file. I've suceeded in making a main mdi resizable gui. On the lift I h

Re: [PyQt] slots don't get called

2009-09-22 Thread Peter Bienstman
On Tuesday 22 September 2009 01:26:50 pm you wrote: > > Which system is this? Mine is WinXP with PyQt-Py2.6-gpl-4.5.4-1.exe . > > Linux using current snapshots. A problem like that is unlikely to be > platform dependent. Is there a Windows installer for the latest snapshot by any chance? Perhaps

Re: [PyQt] slots don't get called

2009-09-22 Thread Phil Thompson
On Tue, 22 Sep 2009 13:21:44 +0200, Peter Bienstman wrote: > On Tuesday 22 September 2009 11:06:06 am you wrote: >> On Sun, 20 Sep 2009 20:39:53 +0200, Peter Bienstman >> >> wrote: >> > On Saturday 19 September 2009 08:51:29 pm you wrote: >> >> Not a lot I can do without a test case that I can ru

Re: [PyQt] slots don't get called

2009-09-22 Thread Peter Bienstman
On Tuesday 22 September 2009 11:06:06 am you wrote: > On Sun, 20 Sep 2009 20:39:53 +0200, Peter Bienstman > > wrote: > > On Saturday 19 September 2009 08:51:29 pm you wrote: > >> Not a lot I can do without a test case that I can run... > > > > You'll find a heavily stripped down version of the pro

Re: [PyQt] Changing the height of the QTabbar in QTabWidget

2009-09-22 Thread Chris Dunscombe
Thanks for the example. I've been able to modify it and get the appearance I want. Thanks again, Chris --- On Mon, 9/21/09, David Boddie wrote: From: David Boddie Subject: Re: [PyQt] Changing the height of the QTabbar in QTabWidget To: pyqt@riverbankcomputing.com Date: Monday, September 21, 2

[PyQt] Re: Problem with latest PyQt4 snapshot

2009-09-22 Thread Phil Thompson
On Sat, 19 Sep 2009 19:47:00 +0200, Detlev Offenbach wrote: > Hi Phil, > > pyuic4 of the latest snapshot is a bit buggy. It does wrap the value set > via > QObject.setProperty(...) into a QVariant. That makes code generated with > this > pyuic incompatible with older PyQt4 versions. pyuic does

[PyQt] Re: Problem catching exception from SIP-wrapped function

2009-09-22 Thread Arve Knudsen
I should mention that to test, call the function do_raise in the 'raiser' module. You should then see that there is an uncaught C++ exception. Arve On Mon, Sep 21, 2009 at 6:40 PM, Arve Knudsen wrote: > Hi > > I have run into this problem where a C++ exception is not correctly > translated into P

Re: [PyQt] slots don't get called

2009-09-22 Thread Phil Thompson
On Sun, 20 Sep 2009 20:39:53 +0200, Peter Bienstman wrote: > On Saturday 19 September 2009 08:51:29 pm you wrote: > >> Not a lot I can do without a test case that I can run... > > You'll find a heavily stripped down version of the program here: > > http://users.ugent.be/~pbienst/pub/noslot.tar.

[PyQt] QMYSQL + QSqlQueryModel.

2009-09-22 Thread Igor Prischepoff
Hello, I'm recently upgraded my python setup to python 2.6.2 + Qt 4.5.1 + latest pyqt (on WinXP) I'm trying to work with mysql through qmysql plugin & QtSql.QSqlQueryModel here is code demonstrating my problem: -- from PyQt4 import QtSql, QtGui,QtCore import sys views = [] def initial