as you said me to use signal and slots, it is giving me error..
no matching function for call to 'dynamic::connect(QWizard::WizardButton, const char [11], edges*, const char [11])'
code..
I am trying to connect finish button of dynamic to edge wizard..
//dynamic.h
class dynamic : public QWizard
{
Q_OBJECT
public:
explicit dynamic
(QWidget *parent
= 0);
~dynamic(){}
};
//dynamic.cpp
#include "dynamic.h"
#include "edges.h"
#include <QtGui>
: QWizard(parent)
{
edges e;
connect(FinishButton,SIGNAL(clicked()),&e,SLOT(e.show()));
}
//edges.h
class edges : public QWizard
{
Q_OBJECT
public:
explicit edges
(QWidget *parent
= 0);
~edges(){}
public slots:
void app_run();
};
//edges.cpp
#include "edges.h"
: QWizard(parent)
{
setOption(QWizard::NoBackButtonOnLastPage,true);
setWindowTitle(tr("Edge Wizard"));
}
void edges::app_run()
{
this->show();
}
//dynamic.h
class dynamic : public QWizard
{
Q_OBJECT
public:
explicit dynamic(QWidget *parent = 0);
~dynamic(){}
};
//dynamic.cpp
#include "dynamic.h"
#include "edges.h"
#include <QtGui>
dynamic::dynamic(QWidget *parent)
: QWizard(parent)
{
edges e;
connect(FinishButton,SIGNAL(clicked()),&e,SLOT(e.show()));
}
//edges.h
class edges : public QWizard
{
Q_OBJECT
public:
explicit edges(QWidget *parent = 0);
~edges(){}
public slots:
void app_run();
};
//edges.cpp
#include "edges.h"
class QLineEdit;
edges::edges(QWidget *parent)
: QWizard(parent)
{
setOption(QWizard::NoBackButtonOnLastPage,true);
setWindowTitle(tr("Edge Wizard"));
}
void edges::app_run()
{
this->show();
}
To copy to clipboard, switch view to plain text mode
Bookmarks