Hey guys .. I recently tried to use some Maemo5 specific classes (e.g. QMaemo5ListPickSelector, etc ..), and I'm getting some strange compile time errors ..
Here is a small code I was trying out:
QMaemo5ValueButton *x = new QMaemo5ValueButton("Hello");
QStandardItemModel model (10,2);
int i,j,k;
for(j=0;j<=1;j++)
{
k=0;
for(i=0;i<=9;i++)
{
QStandardItem *item = new QStandardItem(QString("%0").arg(k));
k+=5;
model.setItem(i,j,item);
}
}
x->setValueLayout(QMaemo5ValueButton::ValueBesideText);
QMaemo5ListPickSelector *sel = new QMaemo5ListPickSelector();
sel->setModel(&model);
x->setPickSelector(sel);
QHBoxLayout *hbox = new QHBoxLayout();
hbox->addWidget(x);
QVBoxLayout *vbox = new QVBoxLayout();
vbox->addLayout(hbox);
vbox->addWidget(canvas);
scrollArea->setLayout(vbox);
setCentralWidget(scrollArea);
And this is the error I get:
And this is the same error in more detail:
I have installed the complete Nokia Qt SDK, and that is what is being used here as well ... The Maemo5 specific libraries are only 'seen' when I select 'Maemo' as the output device ..
Anyone know how can I fix these errors .. ?
I had a hard time configuring Qt Creator the first time round as well, and I really dont want to have to all kinds of un/re-installs all over again :(