I have two classes : classA and classB
I would like to connect a function F() from classB with a click event from a button ui of the classA.
I know there is the possibitlity to have the classB member of the class A. But there is another to do it if the class are separe?
The connect function shoud be in the class A connect(ui->button,SIGNAL(clicked(),b->F())); ???
{
Q_OBJECT
public:
~classA();
private:
Ui::board *ui;
};
class classA : public QWidget
{
Q_OBJECT
public:
classA(QWidget *parent = 0);
~classA();
private:
Ui::board *ui;
};
To copy to clipboard, switch view to plain text mode
{
Q_OBJECT
public:
~classB();
void F();
};
class classB: public QWidget
{
Q_OBJECT
public:
classB(QWidget *parent = 0);
~classB();
void F();
};
To copy to clipboard, switch view to plain text mode
Bookmarks