I have written an application in C++
using Qt 4.8
in Visual Studio 2010
and I try to make .exe
with dll
s. 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)
Not normal view (on someone else's computer)
The dll
s in folder: