What are the dll's and lib files to be added for my application to run on the Non-Qt installed machine>>

my source code is::

Qt Code:
  1. QString host = QHostInfo::localHostName();
  2. QHostInfo hostinfo = QHostInfo::fromName(host);;
  3. QString address = "";
  4. if (!hostinfo.addresses().isEmpty()) {
  5. QList<QHostAddress> list = hostinfo.addresses();
  6. for(int i=0; i<list.count(); i++)
  7. {
  8. QString ip = list[i].toString();
  9. if(!ip.startsWith("0:") && !ip.startsWith("127."))
  10. {
  11. address.append(ip);
  12. break;
  13. }
  14. }
  15. }
  16.  
  17.  
  18. bool ok=false;
  19. QDateTime dateTime = QDateTime::currentDateTime();
  20.  
  21. QString dd=dateTime.toString("yyyy-MM-dd hh:mm:ss");
  22.  
  23. QHostInfo info;
  24. QString IPAddress;
  25. QHostAddress Address;
  26. //QMessageBox::information(this,"","" + info.localHostName() + "");
  27. QString hostname=info.localHostName();
  28. //QMessageBox::warning(NULL,"Hostname",hostname,QMessageBox::Ok);
  29.  
  30.  
  31.  
  32. //QMessageBox::warning(NULL,"DriveList",OrigDateTime,QMessageBox::Ok);
  33.  
  34. QStringList list=QSqlDatabase::drivers();
  35. QString driveList;
  36. for(int i=0;i<list.length();i++)
  37. {
  38. driveList += list[i];
  39. }
  40. //QMessageBox::warning(NULL,"DriveList",driveList,QMessageBox::Ok);
  41. QSqlDatabase db= QSqlDatabase::addDatabase("QMYSQL3");
  42. db.setHostName("172.16.0.1");
  43. db.setDatabaseName("screengrabber");
  44. db.setUserName("scre");
  45. db.setPassword("1234");
  46. ok = db.open();
  47.  
  48. QString servstr="1";
  49. //servstr.number(serv,2);
  50.  
  51. /*QMessageBox::warning(NULL,"IPNAME",ipname,QMessageBox::Ok);
  52.   QMessageBox::warning(NULL,"datetime",datetime,QMessageBox::Ok);
  53.   QMessageBox::warning(NULL,"serv",servstr,QMessageBox::Ok);*/
  54.  
  55.  
  56. QSqlQuery querylog(db);
  57. querylog.exec("INSERT INTO service_log (ip_address,date_time, service_status, logged_user)VALUES (?,?,?,?)");
  58. querylog.bindValue(0,address);
  59. querylog.bindValue(1,dd);
  60. querylog.bindValue(2,servstr);
  61. querylog.bindValue(3,hostname);
  62.  
  63. /*bool qrylog=querylog.exec("INSERT INTO service_log (ip_address,date_time, service_status, logged_user)"
  64.   "VALUES ('172.16.0.51','2011-07-28 15:55:09',1,'ramachandran')");*/
  65.  
  66. bool qrylog= querylog.exec();
  67. /*QString success = querylog.lastError().text();
  68.   QMessageBox::warning(NULL,"Error",success,QMessageBox::Ok);
  69.   QString execquery=querylog.executedQuery();*/
  70. //QMessageBox::warning(NULL,"Executed Query",execquery,QMessageBox::Ok);
  71.  
  72. //QHostAddress info1=info.fromName("localhost").addresses().first();
  73.  
  74. db.close();
  75.  
  76.  
  77.  
  78. for(;;)
  79. {
  80.  
  81. /*QSqlDatabase db= QSqlDatabase::addDatabase("QMYSQL3");
  82.   db.setHostName("172.16.0.1");
  83.   db.setDatabaseName("screengrabber");
  84.   db.setUserName("scre");
  85.   db.setPassword("1234");*/
  86. bool opened = db.open();
  87.  
  88.  
  89. originalPixmap =QPixmap();
  90. originalPixmap = QPixmap::grabWindow(QApplication::desktop()->winId());
  91. QString strfname;
  92. strfname.sprintf("%d",c);
  93. originalPixmap.save("C:\\Program Files\\image"+strfname+".jpeg","jpeg");
  94. c++;
  95. char Data;
  96. QFile file("C:\\Program Files\\image"+strfname+".jpeg");
  97. file.open(QIODevice::ReadOnly);
  98. //file.seek(0);
  99. int len=file.size();
  100. //buf=file.read(len);
  101. buf=file.readAll();
  102. file.close();
  103. file.remove();
  104. QSqlQuery query;
  105. query.exec("INSERT INTO log (grab_date, ip_address, image,logged_user) "
  106. "VALUES (?,?,?,?)");
  107. query.bindValue(0,dd);
  108. query.bindValue(1,address);
  109. query.bindValue(2,buf);
  110. query.bindValue (3,hostname);
  111. bool qry=query.exec();
  112.  
  113. int length=buf.length();
  114.  
  115. //QMessageBox::warning(NULL,"DriveList",strquery,QMessageBox::Ok);
  116.  
  117. //QString success1 = query.lastError().text();
  118. //QMessageBox::warning(NULL,"Error",success1,QMessageBox::Ok);
  119. //QString execquery1=query.executedQuery();
  120. //QMessageBox::warning(NULL,"Executed Query",execquery1,QMessageBox::Ok);
  121.  
  122. db.close();
  123.  
  124.  
  125. /*QFile newfile("D:\\img.txt");
  126.   newfile.open(QIODevice::WriteOnly);
  127.   newfile.write(buf);*/
  128.  
  129. int iSecret, iRandom;
  130. iSecret = rand() % 20 + 1;
  131. iRandom=iSecret*60000;
  132.  
  133. QMutex mutex;
  134. mutex.lock();
  135. QWaitCondition waitCondition;
  136. waitCondition.wait(&mutex, iRandom);
  137. mutex.unlock();
To copy to clipboard, switch view to plain text mode