Re: [PyQt] Bug in QWebKit?...

2012-01-13 Thread Kovid Goyal
On Fri, Jan 13, 2012 at 09:34:42AM +0100, Andreas Pakulat wrote: Well, determining coordinates and height/width for elements is a completely different story than fetching a static attribute from a static element in a static page. The point is that I have found that properties that can be

Re: [PyQt] Bug in QWebKit?...

2012-01-13 Thread Andreas Pakulat
On 13.01.12 14:23:02, Kovid Goyal wrote: On Fri, Jan 13, 2012 at 09:34:42AM +0100, Andreas Pakulat wrote: Well, determining coordinates and height/width for elements is a completely different story than fetching a static attribute from a static element in a static page. The point is that

[PyQt] Problem on insert rows when using QTreeView with QSortFilterProxyModel

2012-01-13 Thread Gabriel Reis
Hi, I have a tree data structure which I'm trying to display on a QTreeView, using a QSortFilterProxyModel with a QAbstractItemModel as its source. The problem is when I try to add/insert data into my data structure my application crashes without any exceptions or warning messages. It simply dies

Re: [PyQt] Bug in QWebKit?...

2012-01-13 Thread Kovid Goyal
On Fri, Jan 13, 2012 at 10:32:02AM +0100, Andreas Pakulat wrote: Maybe I didn't read your code close enough, but it merely looked like a case where different page-contents influence a given attribute in different ways. So the code tries to determine which attribute is best used for height.

Re: [PyQt] Problem on insert rows when using QTreeView with QSortFilterProxyModel

2012-01-13 Thread Benjamin Kloster
Without the lsfw2 module, it's hard to test on my end, but have you tried keeping around a reference to the sourceModel? The Qt documentation doesn't mention whether the proxy model assumes ownership. If it doesn't, the source model will be garbage collected.

Re: [PyQt] Problem on insert rows when using QTreeView with QSortFilterProxyModel

2012-01-13 Thread Gabriel Reis
Oops! Sorry, I forgot completely about that piece of code. The TreeModel class code is found below: class TreeModel(QAbstractItemModel): def columnCount(self, parent): if parent.isValid(): return parent.internalPointer().columnCount() else: return

[PyQt] PyQt in embedded python (C++/Qt Application)

2012-01-13 Thread Marc Gronle
Hello everybody, I am developing a C++/Qt Application, where we integrated python as scripting engine. I would like to offer the possibility to write PyQt-Scripts in order to generate user-defined interfaces. In the present case, the python interpreter runs in its own thread within the

[PyQt] How to disable a QPushButton?

2012-01-13 Thread Fabien Lafont
I can I disable a QPushButton? I've tried Button.setEnabled(False) but the button only becomes grey and I can click on it again. Thanks, Fabien ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] How to disable a QPushButton?

2012-01-13 Thread Fabien Lafont
I'm sorry it works perfectly, it was not well connected 2012/1/13 Fabien Lafont lafont.fab...@gmail.com: I can I disable a QPushButton? I've tried   Button.setEnabled(False)  but the button only becomes grey and I can click on it again. Thanks, Fabien

Re: [PyQt] How to disable a QPushButton?

2012-01-13 Thread Nico Dufort
both self.my_button.setEnabled(False) and self.my_button.setDisabled(True) worked for me. On Fri, Jan 13, 2012 at 3:11 PM, Fabien Lafont lafont.fab...@gmail.comwrote: I can I disable a QPushButton? I've tried Button.setEnabled(False) but the button only becomes grey and I can click on it

Re: [PyQt] How to disable a QPushButton?

2012-01-13 Thread Vincent Vande Vyvre
Le 13/01/12 15:11, Fabien Lafont a crit: I can I disable a QPushButton? I've tried Button.setEnabled(False) but the button only becomes grey and I can click on it again. Thanks, Fabien

Re: [PyQt] PyQt in embedded python (C++/Qt Application)

2012-01-13 Thread Andreas Pakulat
On 13.01.12 15:09:06, Marc Gronle wrote: Hello everybody, I am developing a C++/Qt Application, where we integrated python as scripting engine. I would like to offer the possibility to write PyQt-Scripts in order to generate user-defined interfaces. In the present case, the python

Re: [PyQt] How to disable a QPushButton?

2012-01-13 Thread Fabien Lafont
It works finally well, it was just a problem of connection and I used set.checkable I wondered it was the setEnabled(False) wich turn the button to grey color... Thanks! 2012/1/13 Vincent Vande Vyvre vincent.vandevy...@swing.be: Le 13/01/12 15:11, Fabien Lafont a écrit : I can I disable a

Re: [PyQt] Bug in QWebKit?...

2012-01-13 Thread James Polk
A great Thank You to Andreas and Kovid for both of your expert-level feedback on this... Since Andrea suggest the bug may be in Qt,...I will post to that forum as well... but think I might wait a day or so to hear what others may say and weigh-in with their expertise before propagating to