Hi there, First of all I'm using visual studio 2010 with the QT plugin.
In my application I wish to use different forms (duh) when user click buttons. Now I created 2 files with the designer: "RoomStd.ui" & "ResourceCompare.ui". In visual studio I right click the tree and add "existing component" and add those 2 files to the project tree (under forms).
The moc/uic tool correctly generates ui_RoomStd.h & ui_ResourceCompare.ui. Which I use in my classes like:
#include "ui_RoomStd.h"
namespace MW {
class RoomStdDialog : public TreeCompareDialog {
Q_OBJECT
public:
Ui::Form ui;
};
}
#include "ui_RoomStd.h"
namespace MW {
class RoomStdDialog : public TreeCompareDialog {
Q_OBJECT
public:
Ui::Form ui;
};
}
To copy to clipboard, switch view to plain text mode
(And similar for ResourceCompare).
All fine and good: however there pops up a problem now, when compiling I get the following error:
1>d:\my documents\visual studio 2010\Projects\GMOrganizer_GUI\GMOrganizer_GUI\Gene ratedFiles\ui_ResourceCompare.h(26): error C2011: 'Ui_Form' : 'class' type redefinition
Looking into both header files (ui_ResourceCompare.h & ui_RoomStd.h) I see the culprit; Both headers use the "class Ui_Form" as main class for the (modal) window. Can't I use multiple designed modal windows in my application or something?
Bookmarks