Does the model pointed by this variable have a parent? If so, what is it?
Does the model pointed by this variable have a parent? If so, what is it?
the model is inside an structure (where I keep my member variables) and has no parent.
That structure is not destroyed or changed at all.
Seems like the problem is with the SQLQuery
solved
The problem wasn't in this code... I started to follow my pointers (you seemed pretty sure when you said it was a pointer problem, so I assumed you were right and I had this problem somewhere) and the problem was when I created a new formular (QDialog); there, I reinitializate the databe and seems like I had to close it or they had some kind of compatibility problem.
I just send the database pointer trough the constructor, the database is not set up again in the new QDialog, and it works.
thanks!
Bookmarks