kingslee
17th October 2006, 20:03
Error : MVRObj undeclared.
In the following code .. I declared MVRObj with QVector<MVRObject>
..
I dont know what's happening .
Is there anything wrong on my coding.
waiting for ur reply
struct MVRObject
{
QString name;
objectType type;
float x,y,z,rotx,roty,rotz,r,g,b,a,sizez,sizey,sizex,rad ius;
}m_MVR;
VRML2MVRDlg::VRML2MVRDlg(QWidget *parent)
: QDialog(parent)
{
QVector<MVRObject> MVRObj(1);
MVRObj[0].name = "";
MVRObj[0].x = 0;
MVRObj[0].y = 0;
MVRObj[0].z = 0;
MVRObj[0].rotx = 0;
MVRObj[0].roty = 0;
MVRObj[0].rotz = 0;
MVRObj[0].r = 0;
MVRObj[0].g = 0;
MVRObj[0].b = 0;
MVRObj[0].a = 1;
MVRObj[0].sizez = 0;
MVRObj[0].sizey = 0;
MVRObj[0].sizex = 0;
ui.setupUi(this);
connect(ui.m_Browse, SIGNAL(clicked()), this, SLOT(on_Browse_clicked()));
// connect(ui.m_Browse, SIGNAL(clicked()),this, SLOT(getFileName()));
connect(ui.m_convert, SIGNAL(clicked()), this, SLOT(on_Convert_clicked()));
}
In the following code .. I declared MVRObj with QVector<MVRObject>
..
I dont know what's happening .
Is there anything wrong on my coding.
waiting for ur reply
struct MVRObject
{
QString name;
objectType type;
float x,y,z,rotx,roty,rotz,r,g,b,a,sizez,sizey,sizex,rad ius;
}m_MVR;
VRML2MVRDlg::VRML2MVRDlg(QWidget *parent)
: QDialog(parent)
{
QVector<MVRObject> MVRObj(1);
MVRObj[0].name = "";
MVRObj[0].x = 0;
MVRObj[0].y = 0;
MVRObj[0].z = 0;
MVRObj[0].rotx = 0;
MVRObj[0].roty = 0;
MVRObj[0].rotz = 0;
MVRObj[0].r = 0;
MVRObj[0].g = 0;
MVRObj[0].b = 0;
MVRObj[0].a = 1;
MVRObj[0].sizez = 0;
MVRObj[0].sizey = 0;
MVRObj[0].sizex = 0;
ui.setupUi(this);
connect(ui.m_Browse, SIGNAL(clicked()), this, SLOT(on_Browse_clicked()));
// connect(ui.m_Browse, SIGNAL(clicked()),this, SLOT(getFileName()));
connect(ui.m_convert, SIGNAL(clicked()), this, SLOT(on_Convert_clicked()));
}