[PyKDE] QTableWidget vs. QTableView

bastian salmela basse at kulma.org
Tue Jun 20 13:15:05 BST 2006


I'm trying to create my own subclass from QTableWidget, but no matter what I 
try, I always end up with just white blank area, no table grid at all. I 
then tried to create it from QTableView and it works. 

is this QT or PyQT bug? or am I just doing it wrong? 

here is simply how I had it subclassed with QTableWidget (just for 
testing).. shouldn't that already display atleast something? 

class bbVuoroTaulu(QtGui.QTableWidget):
   def __init__(self, parent=None):
	QtGui.QTableWidget.__init__(self, parent)
	self.setRowCount(8)
	self.setColumnCount(2) 

 

.b
kulma.org -- the works 





More information about the PyQt mailing list