If I comment out the "setPickSelector" call the button doesn't do anything when clicked but at least it doesn't crash. This makes me think it has to be something to do with QMaemo5ListPickSelector. A google for QMaemo5ListPickSelector and pyside brings up only a git commit log. Is there a chance this just doesn't work yet or am I doing something stupid? This is my first python project in about 4 years and my first time using QT so perhaps it's pebkac. Any help would be greatly appreciated.
QStandardItemModel *stationListModel = new QStandardItemModel(0, 1); foreach(QString station, stationList) { QStandardItem *item = new QStandardItem(station); // the Maemo 5 design spec recommends this. item->setTextAlignment(Qt::AlignCenter); item->setEditable(false); // prevent editing of the item stationListModel->appendRow(item); } QMaemo5ListPickSelector *fromSelector = new QMaemo5ListPickSelector; QMaemo5ListPickSelector *toSelector = new QMaemo5ListPickSelector; QMaemo5ListPickSelector *viaSelector = new QMaemo5ListPickSelector; fromSelector->setModel(stationListModel); toSelector->setModel(stationListModel); viaSelector->setModel(stationListModel); // not setting the current index means that the value is empty. fromButton->setPickSelector(fromSelector); toButton->setPickSelector(toSelector); viaButton->setPickSelector(viaSelector);