Kola73
26th June 2015, 23:46
I have following code:
class MyProxy : public QObject
{
Q_OBJECT
public:
MyProxy() : QObject()
{
}
public slots:
void ButtonPress2()
{
emit SIGNAL(Change());
}
void Changed()
{
QMessageBox::information(0, "Changed","Changed");
}
signals:
void Change();
};
ButtonPress2() is being called from button's clicked() signal, however Changed() slot is never called.
Sorry, I'm absolutely newbie in QT...
class MyProxy : public QObject
{
Q_OBJECT
public:
MyProxy() : QObject()
{
}
public slots:
void ButtonPress2()
{
emit SIGNAL(Change());
}
void Changed()
{
QMessageBox::information(0, "Changed","Changed");
}
signals:
void Change();
};
ButtonPress2() is being called from button's clicked() signal, however Changed() slot is never called.
Sorry, I'm absolutely newbie in QT...