hi,
i have a form design that i implement using the multiple inheritance approach, so i have a class {i name it gui} that represents my form
class gui
: public QDialog,
private Ui
::mainFormGUI {
Q_OBJECT
//the constructor
public:
//the buttons of the functions....
private slots:
private:
typeA test;
};
class gui : public QDialog, private Ui::mainFormGUI
{
Q_OBJECT
//the constructor
public:
gui (QWidget *parent = 0);
//the buttons of the functions....
private slots:
private:
typeA test;
};
To copy to clipboard, switch view to plain text mode
the problem is that i want to make typeA access the gui interface....{for example write on a QTextEdit..... How can i do this?
i thought that i could pass to the typeA class a {this}pointer of gui {i.e. gui* p_gui} and then access the QTextEdit from p_gui but unfortunatelly it doesn't work....
any other ideas?
thanks in advance ,
N.A
Bookmarks