[PyQt] Pb understanding painter

2007-12-22 Thread Jean-Baptiste BUTET
Hi all :) I am trying to draw a cross in a label with coordinates. I've think (surely false ;) ) make a a widget, place it on coodinates and paint it with my cross Image. here is this code : class point(QtGui.QWidget): def __init__(self, x, y, parent): print parti

Re: [PyQt] Beginners - signal - slots - question

2007-12-22 Thread Henrik Pauli
On Saturday 22 December 2007, Phil Thompson wrote: On Saturday 22 December 2007, Henrik Pauli wrote: [...] QtCore.QObject.connect(self.lineEdit,QtCore.SIGNAL(returnPressed()), self.blabla) QtCore.QObject.connect(self, QtCore.PYSIGNAL(blabla2),

Re: [PyQt] Large Table Example in PyQt4

2007-12-22 Thread Brian Kelley
You have two large culprits here: tv.resizeColumnsToContents() and for row in xrange(nrows): tv.setRowHeight(row, 18) Both can take a very long period of time. resizeColumnsToContents is the worst offender as it has to scan every piece of data in your column, determine its

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-22 Thread Noam Raphael
2007/12/21, Phil Thompson [EMAIL PROTECTED]: Works fine for me with current versions. Phil Ok, I now compiled by myself PyQt 4.3.3 with sip 4.7.3. I have qt 4.3.2 installed. The memory still leaks. Is there anything that can be done? Noam ___ PyQt

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-22 Thread Phil Thompson
On Saturday 22 December 2007, Noam Raphael wrote: 2007/12/21, Phil Thompson [EMAIL PROTECTED]: Works fine for me with current versions. Phil Ok, I now compiled by myself PyQt 4.3.3 with sip 4.7.3. I have qt 4.3.2 installed. The memory still leaks. Is there anything that can be done?

[PyQt] Fwd: drawComplexControl

2007-12-22 Thread Attila Olah
Hi everyone, How do I draw e.g. a tool box in a QTreeView? I tried override the model's delegate's paint() function, but it didn't work. I'd like to do something like this: http://doc.trolltech.com/4.3/qstyle.html#drawComplexControl in PyQt4. Is it the right approach? Regards, aatiis

[PyQt] qtable data source

2007-12-22 Thread nishith datta
hi all, I wish to show the output of my sql query in a table. I am unable to do that. Can someone point out some resource / example or documentation to help me out. thanks in advance nishith - Be a better friend, newshound, and know-it-all with