[PyQt] Going back through old bugs ...

2012-04-27 Thread Scott Kitterman
As I've mentioned previously, I'm gradually looking at old PyQt bugs in Debian and Ubuntu and reviewing them. Looking at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523149 it seems to be a user misunderstanding the API. It seems this might have been due to unclear documentation, so I thou

Re: [PyQt] pyqtSlot, getting "undefined" return values when called from qml javascript

2012-04-27 Thread Andrew Suffield
On Sat, Apr 28, 2012 at 12:57:47AM +0300, Ville M. Vainio wrote: > I have a qml file invoking methods on a QObject subclass. I have used > @pyqtSlot decorator to expose the methods as slots. > > I can see that the methods are run; however, the return values seem to > be discarded. Qt slots don't

[PyQt] pyqtSlot, getting "undefined" return values when called from qml javascript

2012-04-27 Thread Ville M. Vainio
I have a qml file invoking methods on a QObject subclass. I have used @pyqtSlot decorator to expose the methods as slots. I can see that the methods are run; however, the return values seem to be discarded. Code for the QObject subclass (that I expose with setContextProperty) is like this: === f

[PyQt] Disturbing evidence of garbage collection error

2012-04-27 Thread Andrew Suffield
query = QtSql.QSqlQuery() if not query.prepare('select %s from %s where %s' % (','.join(field_names), table, self.key_expr(table))): I get 'RuntimeError: underlying C/C++ object has been deleted' on the second line, with low probability. Sometimes it just segfaults instead while i

Re: [PyQt] Always show a QLineEdit as QItemDelegate

2012-04-27 Thread Linos
El 27/04/12 00:12, Jake Richards escribió: > Hello: > I've got a QTreeView that uses a QLineEdit as a QItemDelegate for one of > it's > columns. The problem is that I want to display the QLineEdit all the time, > not > just when the user double clicks and starts editing. Am I using the wrong