Re: [PyQt] has anyone successfully implemented the color editor factory example?

2009-10-24 Thread David Boddie
On Fri, 23 Oct 2009 17:32:30 -0400, Victor Noagbodji wrote: > the example is the one described here: > http://doc.qt.nokia.com/4.5/itemviews-coloreditorfactory.html > > it's not the example itself that i need, but how to use > QItemEditorCreatorBase with pyqt. when i try to create a constructor >

Re: [PyQt] Table changed/modified method

2009-10-24 Thread Hans-Peter Jansen
On Saturday 24 October 2009, 21:31:56 Filippo Rebora wrote: > Ehm...well > > QtCore.QObject.connect(self.tableWidget, QtCore.SIGNAL("cellChanged()"), > self.tableWasModified) The question is: why don't you use the much less masochistic version: self.tableWidget.cellChanged.connect(self.tableWasMod

Re: [PyQt] Table changed/modified method

2009-10-24 Thread Phil Thompson
On Sat, 24 Oct 2009 12:31:56 -0700 (PDT), Filippo Rebora wrote: > Ehm...well > > QtCore.QObject.connect(self.tableWidget, QtCore.SIGNAL("cellChanged()"), > self.tableWasModified) > > And here we have the connection statement: tableWidget contains the table > (extended from QTableWidget) and tabl

Re: [PyQt] Table changed/modified method

2009-10-24 Thread Filippo Rebora
Ehm...well QtCore.QObject.connect(self.tableWidget, QtCore.SIGNAL("cellChanged()"), self.tableWasModified) And here we have the connection statement: tableWidget contains the table (extended from QTableWidget) and tableWasModified is the method but tableWasModified is NEVER executed! Is th

[PyQt] This program made python seg fault,how to solve?

2009-10-24 Thread Fei Xue
Hi! The code below can make python seg fault. Steps to reproduce: run this program,modify the value of a cell, then click submit button,python will seg fault.The correct result is the value of the second column will change to 999 after click submit buttoon. When I use PyQt 4.4,the crash will not

Re: [PyQt] PyQt 4.6.1 missing QPixmap.fromWinHICON()?

2009-10-24 Thread Kurt Schwarz
On Sat, Oct 24, 2009 at 1:05 PM, Giovanni Bajo wrote: > On sab, 2009-10-24 at 12:23 -0400, Kurt Schwarz wrote: > > On Sat, Oct 24, 2009 at 12:16 PM, Giovanni Bajo > > wrote: > > > > On sab, 2009-10-24 at 11:26 -0400, Kurt Schwarz wrote: > > > Hello, > > > > > > >

Re: [PyQt] PyQt 4.6.1 missing QPixmap.fromWinHICON()?

2009-10-24 Thread Giovanni Bajo
On sab, 2009-10-24 at 12:23 -0400, Kurt Schwarz wrote: > On Sat, Oct 24, 2009 at 12:16 PM, Giovanni Bajo > wrote: > > On sab, 2009-10-24 at 11:26 -0400, Kurt Schwarz wrote: > > Hello, > > > > > > According the Nokia's offical Qt 4.6 doccuments they

Re: [PyQt] PyQt 4.6.1 missing QPixmap.fromWinHICON()?

2009-10-24 Thread Kurt Schwarz
On Sat, Oct 24, 2009 at 12:16 PM, Giovanni Bajo wrote: > On sab, 2009-10-24 at 11:26 -0400, Kurt Schwarz wrote: > > Hello, > > > > > > According the Nokia's offical Qt 4.6 doccuments they have added > > a fromWinHICON() to the QPixmap class, this function appears to be > > missing in the latest 4

Re: [PyQt] PyQt 4.6.1 missing QPixmap.fromWinHICON()?

2009-10-24 Thread Giovanni Bajo
On sab, 2009-10-24 at 11:26 -0400, Kurt Schwarz wrote: > Hello, > > > According the Nokia's offical Qt 4.6 doccuments they have added > a fromWinHICON() to the QPixmap class, this function appears to be > missing in the latest 4.6.1 PyQt build. > > > "AttributeError: type object 'QPixmap' has n

Re: [PyQt] Re: PyQt4 and threading

2009-10-24 Thread Giovanni Bajo
On gio, 2009-10-15 at 10:00 +0200, Andreas Pakulat wrote: > On 15.10.09 09:22:03, Ole Streicher wrote: > > >> item.setBrush(QtGui.Brush(QtGui.QColor(...))) > > Jason H writes: > > > GUI operations can only be done in the main thread. > > > > Is setting the brusch of a QGraphicsRectItem a

[PyQt] PyQt 4.6.1 missing QPixmap.fromWinHICON()?

2009-10-24 Thread Kurt Schwarz
Hello, According the Nokia's offical Qt 4.6 doccuments they have added a fromWinHICON() to the QPixmap class, this function appears to be missing in the latest 4.6.1 PyQt build. "AttributeError: type object 'QPixmap' has no attribute 'fromWinHICON'" Will we see this function added to PyQt? --

[PyQt] MySQL plugins PyQt v4.6.1

2009-10-24 Thread Stef . kermit
hi, i've install the last realse and i've problem with mysql plugins - connection OK - some query OK ex: q=QSqlQuery("SELECT id FROM my_table") but with q=QSqlQuery("SELECT * FROM my_table") or with model = QSqlTableModel() model.setTable("my_table") model.select() return False and the "lastEr

Re: [PyQt] QTreeWidget invisible root item

2009-10-24 Thread Baz Walter
Taylor Carrasco wrote: How do you add an invisible root item? by definition, there can only be one root item and that is already provided by the treewidget. something like this might do what you want: myroot = QTreeWidgetItem(mytreewidget) mytreewidget.setRootIndex(mytreewidget.indexFromIte