[PyKDE] Making a column read-only in QTableWidget
Andreas Pakulat
apaku at gmx.de
Fri Sep 8 14:08:51 BST 2006
On 08.09.06 04:29:21, Chris Dunscombe wrote:
> I'm porting an app from PyQt3 to PyQt4 but can't find any obvious replacement for
> QTable.setColumnReadonly() in QTableWidget.
Use QTableWidgetItem::setFlags and don't include the Qt.IsEditable flag.
> Any ideas? (BTW I can't use the SQL module for licensing reasons)
Why's that? I might be wrong, but afaik the SQL Module from Qt and PyQt
are under the same license as the rest of it. The headers in the sql
module say so too (i.e. GPL). Or is this different on windows?
And anyways: What does the sql module have to do with a table widget?
Andreas
--
Excellent time to become a missing person.
More information about the PyQt
mailing list