Re: [PyQt] connectSlotsByName and signals emitted by dialogs?

2008-08-07 Thread Matti Airas
On to, 2008-08-07 at 16:50 +0100, Phil Thompson wrote: > connectSlotsByName() (according to the documentation) connects the children > of its argument, and not the argument (ie. the dialog) itself. > > It does sound like a limitation, but unless there is a bug in the > documentation, it is the in

[PyQt] Strange shadowing of hex() function by PyQt4.QtCore

2008-08-07 Thread Boris Barbour
Hi, Importing PyQt4.QtCore seems to alter or shadow the builtin hex() function. I'm afraid I haven't tracked things down further - I just learnt the hard way to "import" instead of "from import *". However, I'm not sure the clash is intended, so I'm reporting it. Best regards, Boris ipython

[PyQt] simple newb question

2008-08-07 Thread Neal Becker
import sys from PyQt4.QtCore import * from PyQt4.QtGui import * app = QApplication (sys.argv) ret = QMessageBox.question (None, "My App", "You have mail") print ret Why doesn't this display any icon? The docs say that I should see an icon, varying with whether I used '.question', or '.warning',

Re: [PyQt] Is it possible to show a pdf inside a widget?

2008-08-07 Thread Albert Cervera i Areny
A Dijous 07 Agost 2008, Grzegorz Adam Hankiewicz va escriure: > Hi. > > I'm generating PDF files with reportlab and would like to show them > inside some kind of widget in QT instead of opening an external > viewer. Is there any widget allowing to do this? With PyKDE you can use KParts http://api

[PyQt] Is it possible to show a pdf inside a widget?

2008-08-07 Thread Grzegorz Adam Hankiewicz
Hi. I'm generating PDF files with reportlab and would like to show them inside some kind of widget in QT instead of opening an external viewer. Is there any widget allowing to do this? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www

[PyQt] [pyconuk] PyQt4 Tutorial

2008-08-07 Thread Mark Summerfield
Hi, To quote Michael Foord: "PyCon UK starts with a tutorial day, when you have the opportunity to attend two half day tutorials for only £30." One half day tutorial on the Friday will be "Practical Python GUI Programming with PyQt4", summarised here: http://pyconuk.org/talk_abstracts.ht

[PyQt] QTreeWidgetItem Parent

2008-08-07 Thread andYpsilon
Hi! I have the following problem: I filled a QTreeWidget with data and now want the currently selected item back. But to process the data I also need the parents of it. the .text() method works perfectly on the QTreeWidgetItem I created with .currentItem(), but as soon as I am creating a QTreeW

Re: [PyQt] loadUi Error

2008-08-07 Thread Phil Thompson
On Thu, 07 Aug 2008 13:47:39 +0200, Olivier Fournier <[EMAIL PROTECTED]> wrote: > Hi, > > "import PyQt4.uic import loadUi" give me this error: > NameError: global name 'LitteralProxyClass' is not define > with the last release or last snapshot of pyqt and Qt 4.4 > works with pyqt and Qt 4.3 Assum

Re: [PyQt] connectSlotsByName and signals emitted by dialogs?

2008-08-07 Thread Phil Thompson
On Thu, 07 Aug 2008 12:29:19 +0300, Matti Airas <[EMAIL PROTECTED]> wrote: > Hey all, > > I'm trying to get the grips on PyQt4 basics. I've been toying with a > simple dialogs, which I have constructed using Qt Designer and then > converted with pyuic4. I can inherit and use the created class with

[PyQt] Memory error using QVariant with custom class, how to debug?

2008-08-07 Thread Arve Knudsen
I am getting a memory error (python: free: invalid pointer) on Ubuntu when instantiating QVariant with a custom class, and I am simply stuck at the moment (don't even know where the free'ed pointer comes from). Therefore I would very much like some suggestions as to how I can debug the QVariant wra

Re: [PyQt] Python and smartpointers

2008-08-07 Thread Arve Knudsen
I'm dealing with the problem of C++ reference counting again, so I want to come up with a solution to this problem once and for all. Does anyone have a good pattern for wrapping C++ smartpointers with SIP? Thanks, Arve On Fri, Jun 13, 2008 at 3:33 PM, Giovanni Bajo <[EMAIL PROTECTED]> wrote: > On

[PyQt] loadUi Error

2008-08-07 Thread Olivier Fournier
Hi, "import PyQt4.uic import loadUi" give me this error: NameError: global name 'LitteralProxyClass' is not define with the last release or last snapshot of pyqt and Qt 4.4 works with pyqt and Qt 4.3 Best regards Olivier Fournier ___ PyQt mailing list

[PyQt] connectSlotsByName and signals emitted by dialogs?

2008-08-07 Thread Matti Airas
Hey all, I'm trying to get the grips on PyQt4 basics. I've been toying with a simple dialogs, which I have constructed using Qt Designer and then converted with pyuic4. I can inherit and use the created class with no problem, but somehow the quite neat connectSlotsByName baffles me: it doesn't see