PDA

View Full Version : Strange compilation errors when I use Maemo5 specific Qt classes .. !



ahmadka
26th June 2010, 20:47
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:

http://i45.tinypic.com/2a4zg4z.png

And this is the same error in more detail:

http://i48.tinypic.com/20tnxx0.png

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 :(