Dear Patric

Thank you for your reply again, but it didnt solve my problem actually.

Should I have to connect to cachedb on main.cpp?

Because what I do is on main cpp starts a entrance .ui which you log on the postgresql. In which i also connect to cachedb. After that you go to the mainpage.h. The problem I have is I could not connect to cache in the mainpage.h