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

List:       pykde
Subject:    Re: [PyQt] Table Widget Problem v4.4.3
From:       David Boddie <dboddie () trolltech ! com>
Date:       2008-08-25 18:01:37
Message-ID: 200808252001.37742.dboddie () trolltech ! com
[Download RAW message or body]

On Mon Aug 25 15:42:25 BST 2008, Carr, David wrote:

> I move to version 4.4.3 and now cannot get QLabel to display in the table
> widget.  Other Widgets such as QComboBox and QTextEdit work fine, QLabel no
> longer displays and was working fine in previous versions. Any thoughts or
> suggestions would be helpful.
>
> Example code
> itm2 = QtGui.QLabel()
> itm2.setAlignment(QtCore.Qt.AlignCenter)
> itm2.setText('Test')
> self.tableWidgetQTSetMap.setCellWidget(0,0,itm2)

This problem seems to have occurred with Qt 4.4.0 and was apparently fixed in
Qt 4.4.1:

http://trolltech.com/developer/task-tracker/index_html?id=210490&method=entry

My experiments suggest that this was still broken in some cases in Qt 4.4.1,
but that it is now fixed in current snapshots of Qt 4.4.2.

One workaround is to put the label in a container widget (using a layout) and
put that in a table cell instead.

David
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

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