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

List:       pykde
Subject:    Re: [PyKDE] QComboTableItem problem
From:       Lionel Roubeyrie <lionel.roubeyrie () chello ! fr>
Date:       2004-01-21 17:55:59
Message-ID: 200401211855.59239.lionel.roubeyrie () chello ! fr
[Download RAW message or body]

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@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