Re: [PyQt] qtable data source

2007-12-23 Thread Andreas Pakulat
On 23.12.07 11:05:18, nishith datta wrote: > Ok , > I went throught he documentation before and yet again. > I can't figure out what the hell is wrong with this code ;- > import sys > >from PyQt4 import QtGui, QtSql > > db = QtSql.QSqlDatabase.addDatabase("QPSQL") > db.setHostName("loca

Re: [PyQt] qtable data source

2007-12-23 Thread nishith datta
Ok , I went throught he documentation before and yet again. I can't figure out what the hell is wrong with this code ;- import sys from PyQt4 import QtGui, QtSql db = QtSql.QSqlDatabase.addDatabase("QPSQL") db.setHostName("localhost") db.setPort(5432) db.setDatabaseName("test") db.setUs

Re: [PyQt] Fwd: drawComplexControl

2007-12-23 Thread Oleg Klimov
On Sun, 2007-12-23 at 17:11 +0100, Attila Olah wrote: > To put it straight: > > Is it possible to *always* show a complex widget in a tree/table cell > without writing my own paint()? > > My current opinion is NO, not even in C++. Widget is more then paint(), it should be also mouseMove(), keyPr

Re: [PyQt] Fwd: drawComplexControl

2007-12-23 Thread Oleg Klimov
On Sun, 2007-12-23 at 06:18 +0100, Attila Olah wrote: > 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 i

[PyQt] Re: drawComplexControl

2007-12-23 Thread Attila Olah
Still couldn't get it working... Any tutorials on this? Unfortunately I'm unable tu buy the book for now, maybe next year... ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-23 Thread Phil Thompson
On Sunday 23 December 2007, Noam Raphael wrote: > 2007/12/23, Andreas Pakulat <[EMAIL PROTECTED]>: > > Works fine here on Debian unstable, with a bit older PyQt4(I think from > > November) and Qt4.3.2. Yes the memory usage increases when starting to > > scroll, but not that much. After scrolling fr

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-23 Thread Noam Raphael
2007/12/23, Andreas Pakulat <[EMAIL PROTECTED]>: > Works fine here on Debian unstable, with a bit older PyQt4(I think from > November) and Qt4.3.2. Yes the memory usage increases when starting to > scroll, but not that much. After scrolling from one end to the other on > both bars the python proces

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-23 Thread Phil Thompson
On Sunday 23 December 2007, Noam Raphael wrote: > 2007/12/23, Phil Thompson <[EMAIL PROTECTED]>: > > > Is there anything that can be done? > > > > Not if I can't reproduce the problem. I'm using current SIP and PyQt > > snapshots and Qt 4.3.3. > > It also works for me on windows, using the latest b

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-23 Thread Andreas Pakulat
On 23.12.07 13:59:30, Noam Raphael wrote: > 2007/12/23, Phil Thompson <[EMAIL PROTECTED]>: > > > Is there anything that can be done? > > > > Not if I can't reproduce the problem. I'm using current SIP and PyQt > > snapshots > > and Qt 4.3.3. > > > It also works for me on windows, using the latest

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-23 Thread Noam Raphael
2007/12/23, Phil Thompson <[EMAIL PROTECTED]>: > > Is there anything that can be done? > > Not if I can't reproduce the problem. I'm using current SIP and PyQt snapshots > and Qt 4.3.3. > It also works for me on windows, using the latest binary. But have you tried it on linux? I'm using ubuntu 7.10

Re: [PyQt] qtable data source

2007-12-23 Thread Sibylle Koczian
Am Sonntag, 23. Dezember 2007 06:50:44 schrieb 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 http://doc.trolltech.com/4.0/sql.htm

Re: [PyQt] QTextBrowser.append("mytext") ??

2007-12-23 Thread Phil Thompson
On Sunday 23 December 2007, Jochen Georges wrote: > Hello, > > I found an example with the following line: > > self.browser = QTextBrowser() > #some code > self.browser.append("blabla") > > why does that work? > nor i did find a QTextBrowser - method "append" in the qt-assistant, > neither in the p

[PyQt] QTextBrowser.append("mytext") ??

2007-12-23 Thread Jochen Georges
Hello, I found an example with the following line: self.browser = QTextBrowser() #some code self.browser.append("blabla") why does that work? nor i did find a QTextBrowser - method "append" in the qt-assistant, neither in the pyqt-class reference. (http://www.riverbankcomputing.com/Docs/PyQt4/h