Re: [PyKDE] eric and QValueList

2002-06-01 Thread Phil Thompson

Magnus Bjorklof wrote:
 
 Hi,
 
 I was trying to get eric working with Qt3 and was struck by a problem.
 The program craches at line 16 in Scanner.py. Here's that line:
 
 ScannerBreakPix = QCanvasPixmapArray([IconBreak],[QPoint(0,0)])
 
 I changed it according to the documentation (PyQt and Qt) and this is the
 result:
 
 pa=QPointArray(1)
 ScannerBreakPix = QCanvasPixmapArray([IconBreak], pa.setPoint(0,0,0))
 
 The first argument should be a QValueList according to the Qt documentation
 but according to the PyQt doc it should be a Python list of QPixmap
 instances which it is in the code above (IconBreak is a QPixmap instance).
 When I run the code I get:
 
 File Scanner.py, line 19, in ?
   ScannerBreakPix = QCanvasPixmapArray([IconBreak], pa.setPoint(0,0,0))
 File /usr/lib/python2.2/site-packages/qtcanvas.py, line 83, in __init__
   libqtcanvasc.sipCallCtor(8,self,args)
 TypeError: Converting to QValueListQPixmap not yet implemented
 
 How should I solve this?

The missing conversion code has now been added to the CVS version.

Phil

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde



Re: [PyKDE] Q(Int|Double)Validator::setTop()/setBottom() missing

2002-06-01 Thread Phil Thompson

Andreas Gerstlauer wrote:
 
 As the subject says, the wrappers for QIntValidator/QDoubleValidator
 are missing the setTop() and setBottom() methods.
 
 Just something I wanted to point out. Not a big deal, a proper
 setRange() call can do the same...

Thanks. CVS has been updated.

Phil

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde



[PyKDE] Problem with connecting a SIGNAL

2002-06-01 Thread Janos Blazi

I should like to connect the signal textChanged of QLineEdit to a
function of mine. My code is
 
 
QObject.connect(self.input,SIGNAL(textChanged(QString)),self.filter_changed)

but this does not work. I get the error messsage

RuntimeError: Signal has wrong argument types for slot

Can anybody give me a hint?

TIA,

Janos Blazi

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde



Re: [PyKDE] Problem with connecting a SIGNAL

2002-06-01 Thread Phil Thompson

Janos Blazi wrote:
 
 I should like to connect the signal textChanged of QLineEdit to a
 function of mine. My code is
 
 
 QObject.connect(self.input,SIGNAL(textChanged(QString)),self.filter_changed)
 
 but this does not work. I get the error messsage
 
 RuntimeError: Signal has wrong argument types for slot
 
 Can anybody give me a hint?

The hint is to read the documentation.

The answer is that the signature is const QString .

Phil

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde



[PyKDE] QListViewItemIterator missing?

2002-06-01 Thread Janos Blazi

Now I *have* looked into the documentation, but it seems, that
QListViewItemIterator is not supported. Is there another possibility of
iterating through the  (visible or invisible) items in a QListView?

J.B.



___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde



[PyKDE] pyqt on Zaurus SL5000D?

2002-06-01 Thread Stephan M.

I tried to install the zaurus pyqt-package (pyqt_3.2.4-1.0_arm.ipk) following 
Phil Thompson's instructions (using CF, nipkg, ...) on the Zaurus developer 
version but without success :(((  [ .. no space left on device ...].
I made a HW-reset in order to get as much space as possible - same result.

Do I have to use the 1.12 rom image (ramdisk(12MB):heap(20MB)) over my 1.13 
version (ramdisk(6MB):heap(26MB)) in order to get it going?

btw: python is installable, but only to RAM, not to CF - isn't it possible to 
install and run both - python  pyqt - to CF ?

Thank you in advance


Stephan M.

___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde



Re: [PyKDE] QListViewItemIterator missing?

2002-06-01 Thread Janos Blazi

On Sat, 2002-06-01 at 22:40, John J. Lee wrote:

 Somebody pointed out QListViewItem.finditem when you asked this last
time,

This is the first time I am asking this (though I sometimes send
messages due to Evolution's or my own idioty). I did not receive other
responses either.

Thank you very much. Your suggestion works and my 'incremental search
list view' is nearly finished.

I am sorry that I am asking questions that often but I am new to all
this and there are a lot of functions and methods in Qt. (And I am new
to Unix as well.)

I hope that at least this is understood as my sincere respect for Qt and
PyQt, that are both wonderful pieces of software.

Janos Blazi



___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde



[PyKDE] PyQt on iPAQ / PyQt on OpenZaurus

2002-06-01 Thread Michael Lauer

FYI: Recent modifications by sharp or trolltech broke PyQt
compatibility with the iPAQ and Zaurus running Familiar/Opie respectively
OpenZaurus.

I've submitted a patch to opie-cvs which got its way in and now PyQt
runs again on Familiar/Opie and OpenZaurus.

Yours,

:M:
--
||
| Dipl.-Inf. Michael 'Mickey' Lauer[EMAIL PROTECTED] |
|   Raum 10b - ++49 69 798 28358Fachbereich Informatik und Biologie  |
||



___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde