c++ - QTableView does not display database in release mode -



c++ - QTableView does not display database in release mode -

i have written application in c++ using qt 4.8 in visual studio 2010 , seek create .exe dlls. seems work fine,

when i run programme on computer without vs or qt installed there, nil gets displayed.

//class create database

databasemanager::databasemanager(): m_database(new qsqldatabase(qsqldatabase::adddatabase("qsqlite"))) { m_database->setdatabasename("virtualbank.db"); m_database->sethostname("localhost"); }

// widget has holds qtableview database gets displayed

corporationwidget { //.... qtableview * m_wgt; qsqlrelationaltablemodel* m_model; //.... } void corporationwidget::initializemodel() { setmodel(new qsqlrelationaltablemodel(this,*(getcontext()->model->getdatabase()))); //.... }

normal view: (on computer)

not normal view (on else's computer)

the dlls in folder:

c++ dll exe release-management qsqltablemodel

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -