Is there a way to write a class with namespace that utilizes the .ui file generated from the Visual Studio Integration? Everything seems fine until I try to connect a signal from the widget by the contextual menu. It prompts a warning that says
"Warning!
The project doesn't contain any class which uses this form!"
Here is a code snip
namespace space
{
{
Q_OBJECT
public:
A
(QWidget *parent
= 0, Qt
::WFlags flags
= 0);
~A();
private:
Ui::AClass ui;
};
} // namespace space
namespace space
{
class A : public QMainWindow
{
Q_OBJECT
public:
A(QWidget *parent = 0, Qt::WFlags flags = 0);
~A();
private:
Ui::AClass ui;
};
} // namespace space
To copy to clipboard, switch view to plain text mode
The error goes away after I have removed the namespace. Is there a way to use the form in a namespace'd class?
Thanks a lot!
Bookmarks