|
|
01-10-2010
, 07:33 AM
|
|
Posts: 23 |
Thanked: 4 times |
Joined on Dec 2009
|
#2
|
![]() |
| Thread Tools | Search this Thread |
|
i started porting some of my pyqt apps to maemo.
Unfortunately "setSortingEnabled" is not working for me:
import sys from PyQt4.QtCore import * from PyQt4.QtGui import * class MeinDialog(QTreeWidget): def __init__(self): QTreeWidget.__init__(self) self.setColumnCount(1) items = [] for i in range(10): items.append(QTreeWidgetItem(None, QStringList(QString("item: %1").arg(i)))) self.addTopLevelItems(items) self.setSortingEnabled(True) app = QApplication(sys.argv) dialog = MeinDialog() dialog.show() sys.exit(app.exec_())any idea?
PS: it works at scratchbox but not on my device ...
Last edited by roose; 01-10-2010 at 01:05 AM.