thanks,i have resolved it.
with the line below:
#CONFIG += crypto.prf
CONFIG += crypto
the resolved ways:
eg:
C:\myapp is my root folder;
so
executable
C:\myapp\myapp.exe – executable
qt's dll
c:\myapp\QtCore4.dll ---qt's dll
....
c:\myapp\QtGui4.dll ---qt's dll
QCA'S dll
c:\myapp\qca2.dll,qca-ossl2.dll,libeay32.dll,ssleay32.dll
QT's plugins
(here you can copy QT's plugins to your root folder)
c:\myapp\plugins\codecs
....
c:\myapp\plugins\sqldrivers
c:\myapp\plugins\crypto(here must be contain the QCA's DLL for load)
so the all needed dlls are completion.
you must write code below:
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//set the loading plugins path.
qApp->addLibraryPath(qApp->applicationDirPath());
qApp->addLibraryPath(qApp->applicationDirPath() + "/plugins");
//init QCA dll
QCA::Initializer init;
QTextCodec::setCodecForLocale(QTextCodec::codecForLocale());
QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale());
QTextCodec::setCodecForTr(QTextCodec::codecForLocale());
BankClient w;
w.show();
return a.exec();
}
so you can run the application in any window PC wihout creator.
so there are your deploying componts.
at last i must thank maciek ,
he offer a config file "qt.conf" to set the libray path .
like with my code aboved.
i have not try this method.
i think it is a good way mentioned in QT sdk help.
http://qt-project.org/doc/qt-4.8/deployment-windows.html
http://qt-project.org/doc/qt-4.8/qt-conf.html
but there is a questions about QCA????
the qca's dll have two paths.
1.c:\myapp
2.c:\myapp\plugins
if i delete any of it ,the application will not run.
so it is a question for me ,
Is any one know why does it.