[PyKDE] QComboTableItem problem
Gerard Vermeulen
gvermeul at grenoble.cnrs.fr
Wed Jan 21 19:22:01 GMT 2004
On Wed, 21 Jan 2004 18:55:59 +0100
Lionel Roubeyrie <lionel.roubeyrie at chello.fr> wrote:
> 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 ?
>
Let's say that it is a feature of the Keramik style :-)
More seriously, I know another example related to (Py)Qwt where the Keramik
style caused problems.
Gerard
>
> 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
>
> _______________________________________________
> PyKDE mailing list PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
>
More information about the PyQt
mailing list