Why do you need to reopen the connection?
Because if I dont open it right before calling a constructor of a QSqlQueryModel () I receive errors telling me that the database is not open...
I`ve check that, and no, there isnt. The thing is that if I pass through parameters the DB I can actually work with a simple QSqlQuery but not with a QSqlQueryModel (), when i work with the last one I need to open the database right before it is created.
To my PS question of the thread, do you know something about it? Thanks a lot wysota![]()
Just start your application through a bat script.PS: Another quick question. Is there a way to call a program to execute before I open my app? Because I want to execute the oracle .bat: StartDB.bat so that the user doesn`t have to do it manually. I know that it starts when the system boots but sometimes for performance of the machine I need to close it for example....
KillGabio (8th February 2012)
Bookmarks