[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] QComboTableItem problem
From:       Lionel Roubeyrie <lionel.roubeyrie () chello ! fr>
Date:       2004-01-18 16:20:59
Message-ID: 200401181720.59513.lionel.roubeyrie () chello ! fr
[Download RAW message or body]

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@chello.fr

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic