0

I have written an application in C++ using Qt 4.8 in Visual Studio 2010 and I try to make .exe with dlls. Everything seems to work just fine, but

when I run my program on another computer without any VS or Qt installed there, nothing gets displayed.

//class where I create database

DatabaseManager::DatabaseManager():
        m_database(new QSqlDatabase(QSqlDatabase::addDatabase("QSQLITE")))
   {   
         m_database->setDatabaseName("VirtualBank.db");
        m_database->setHostName("localhost");
   }

// Widget that has holds QTableView where that database gets displayed

CorporationWidget
    {
  //....
        QTableView * m_wgt;
            QSqlRelationalTableModel* m_model;
  //....
    }

 void CorporationWidget::initializeModel()
{
    setModel(new QSqlRelationalTableModel(this,*(getContext()->model->getDatabase())));
  //....
}

Normal view: (on my computer) enter image description here

Not normal view (on someone else's computer) enter image description here

The dlls in folder: enter image description here

Uylenburgh
  • 1,277
  • 4
  • 20
  • 46
  • You should not have or need the *90.dll files in your Release folder. If you need them then there is a real problem with your libraries because you are using 2 different CRTs and 2 independent heaps each compiler version (in this case VS2008 and VS2010) has its own heap and runtime. Having this situation can lead to crashes and UB. – drescherjm Jun 18 '14 at 21:36
  • I can delete them - the problem still occurs – Uylenburgh Jun 19 '14 at 07:21

0 Answers0