Hello Levi:
I have created a new project and I have only modified the API level to 10. Then, I modified the main.cpp file with that:
#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QPixmap>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QLabel *l = new QLabel();
l->setPixmap(QPixmap("/data/tmp/test.jpg"));
l->show();
return a.exec();
}
Previously I have copied the test.jpg file to the device with:
adb push test.jpg /data/tmp
And that's all. It's working with necessitas R3. I haven't updated to the last R3.1 version, but I think that there's no modifications related with QLabel or QPixmap.
I think that your error is in the path that you are using.
Please revise the code that you sent some days ago because there's no prototype for:
label->setPixmap(QString);
You must send a QPixmap to this method.
then, the call:
ui->label_3->setPixmap(local_path.canonicalPath() + "/" + file_list[i]);
can't compile.
Hope it helps
JMSaez.