I have a problem:
I use some image in qt resource (.qrc file) but application load resource too slow at startup. (user have to wait about 1 minute or more)
So, I try to load resource in another thread using QThread.
But in QThread::run, it can not load resource correctly.
Here is my code:
I call StartT to start the loading resource thread.
#ifndef SPLASHFORM_H
#define SPLASHFORM_H
#include "ui_SplashForm.h"
class SplashForm : public QDialog, private Ui::SplashForm {
Q_OBJECT
public:
SplashForm(QWidget *parent = 0);
public slots:
void OnThreadFinished();
void StartT();
protected:
void changeEvent(QEvent *e);
};
Qt resources are implemented using a static char* array that contains the resource data. These data gets compiled into your application executable. It will make the application size bigger. I read somewhere else that static data is somehow bad on symbian and should be avoided. You could either try to load the files from filesystem or use http://wiki.forum.nokia.com/index.ph...rce_Access_API to access a native symbian resource file.