sinha.ashish
10th April 2008, 08:35
I have a class and its associated GUI now i want to use another GUI and want to access all the widgets of that GUI within that class. please help me to do so.....!!!!!!
Details are:
Forms
-------
vista.ui
vod.ui name of dialog object is vod
Headers
---------
vista.h
ui_vista.h
ui_vod.h
Sources
----------
vista.cpp
main.cpp
/*CODE of vista .cpp*/
#include "vista.h"
#include "ui_vod.h"
VistaMedia::VistaMedia(QString uname, QWidget *parent):QDialog(parent)
{
setupUi(this);
Ui_vod *adform=new Ui_vod;
adform->show();
}
i got error that adform has no member named "show"
any tricks???????
Details are:
Forms
-------
vista.ui
vod.ui name of dialog object is vod
Headers
---------
vista.h
ui_vista.h
ui_vod.h
Sources
----------
vista.cpp
main.cpp
/*CODE of vista .cpp*/
#include "vista.h"
#include "ui_vod.h"
VistaMedia::VistaMedia(QString uname, QWidget *parent):QDialog(parent)
{
setupUi(this);
Ui_vod *adform=new Ui_vod;
adform->show();
}
i got error that adform has no member named "show"
any tricks???????