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
dll
s. 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 dll
s in folder:
c++ dll exe release-management qsqltablemodel
Comments
Post a Comment