PDA

View Full Version : namespace problem with Qt designer .ui file



ttvo
28th April 2009, 15:31
Hi all,

I'm using Qt 4.x with Visual Studio 2008 and Qt VS Integration. I created a test.ui designer file with corresponding test.h and test.cpp. The generated ui_test.h class has


namespace Ui {
class testClass: public Ui_testClass {};
} // namespace Ui


Things are working fine. However, when I add my test.h and test.cpp to a namespace, the Qt VS integration can't automatically add the slot in those two classes when I double clicking on a widget on my test.ui file as I used to. It gave me a warning, "The project doesn't contain any class that uses this form!".

Is there a way to get around this? Thanks.