Okay, here is the code (I shrinked it down cause it would be too much otherwise):
The error has to do with the options box
//OptionsDialog.h
class C_OptionsDialog
: public QDialog{
Q_OBJECT
public:
//...
public slots:
//...
signals:
void setSmoothingGrp(int lvl);
private:
//... widget elements
}
//OptionsDialog.h
class C_OptionsDialog : public QDialog
{
Q_OBJECT
public:
//...
public slots:
//...
signals:
void setSmoothingGrp(int lvl);
private:
//... widget elements
}
To copy to clipboard, switch view to plain text mode
In the constructor i connected the setSmoothingGrp signal like this (same file after the constructor):
connect(sigMapper, SIGNAL(mapped(int)), this, SIGNAL(setSmoothingGrp(int)));
connect(sigMapper, SIGNAL(mapped(int)), this, SIGNAL(setSmoothingGrp(int)));
To copy to clipboard, switch view to plain text mode
but i also declared the setSmoothingGrp function like this:
void C_OptionsDialog::setSmoothingGrp(int lvl)
{
smoothingLevel = lvl;
currentLab
->setText
(QString("Current %1").
arg(smoothingLevel
));
currentLab->update();
}
void C_OptionsDialog::setSmoothingGrp(int lvl)
{
smoothingLevel = lvl;
currentLab->setText(QString("Current %1").arg(smoothingLevel));
currentLab->update();
}
To copy to clipboard, switch view to plain text mode
I think the error occurs because of one time defined as a signal and one time seen as a function 
when i change the OptionsDialog.h like this, Qt Creator compiles the files fine:
class C_OptionsDialog
: public QDialog{
Q_OBJECT
public:
//...
public slots:
//...
//signals:
//setSmoothingGrp(int lvl);
private:
void setSmoothingGrp(int lvl);
//... widget elements
}
class C_OptionsDialog : public QDialog
{
Q_OBJECT
public:
//...
public slots:
//...
//signals:
//setSmoothingGrp(int lvl);
private:
void setSmoothingGrp(int lvl);
//... widget elements
}
To copy to clipboard, switch view to plain text mode
But when i now click one of the buttons nothing happens, the setSmoothing function gets not been executed.
Bookmarks