[PyKDE] QComboTableItem problem

Lionel Roubeyrie lionel.roubeyrie at chello.fr
Wed Jan 21 19:02:01 GMT 2004


Hello all,
I have finally found that this problem appears only with the Keramik style ! 
Is it a bug in Qt or with this style ?

Lionel

Le Dimanche 18 Janvier 2004 17:20, Lionel Roubeyrie a écrit :
> Hi all,
> I'm back with the same problem, I try to explain you exactly what happens :
> I use Debian Sid (Knoppix) with the following versions :
> Qt : 3.2.3
> python-qt3 : 3.8-3
> SIP : 3.8-2
> python : 2.3.2
>
> When I want to use a QComboTableItem in a cell of a QTable, I can't see it
> unless the cell gets the focus, else the cell looks like using a blank
> line. I try differents pieces of code and I always get the same problem,
> like this one :
> ---------------------------------
> import sys
> from qt import *
> from qttable import *
>
> class MyWidget(QVBox):
>
> 	def __init__(self, label_list):
> 		QVBox.__init__(self)
> 		self.table = QTable(2,2, self)
> 		self.label_list = label_list
> 		self.label = QComboTableItem(self.table, self.label_list)
> 		self.label.setEditable(0)
> 		self.label.setCurrentItem(self.label_list[0])
> 		self.table.setItem(1, 1, self.label)
>
> labels="A,B,test,D,E"
> app=QApplication(sys.argv)
> label_list = QStringList()
> [label_list.append(str(x)) for x in labels.split(',')]
> t=MyWidget(label_list)
> app.setMainWidget(t)
>
> t.show()
>
> app.exec_loop()
> ---------------------------------
>
> Thanks for your help
> Lionel

-- 
Lionel Roubeyrie
lionel.roubeyrie at chello.fr




More information about the PyQt mailing list