K
klops
hi
i've something like this
class Klasa1
{
Q_OBJECT
private:
public:
public slots:
void funkcja();
};
class KlasaDialog : public QDialog
{
private:
QDialog *dlg;
QComboBox *box;
public:
KlasaDialog(QWidget *parent)
{
dlg=new QDialog(parent,"nazwa");
box=new QComboBox(dlg,"nazwa_combo");
//important
connect(box,SIGNAL(activated(int)), this, SLOT(jakas_funkcja()));
}
public slots:
int jakas_funkcja();
};
void Klasa1::funkcja1()
{
KlasaDialog dialog(this);
}
and i don't know why when the program runs, it generate error: "No such
slot: QDialog::jakas_funkcja()" ((
how connect's it??
i've something like this
class Klasa1
{
Q_OBJECT
private:
public:
public slots:
void funkcja();
};
class KlasaDialog : public QDialog
{
private:
QDialog *dlg;
QComboBox *box;
public:
KlasaDialog(QWidget *parent)
{
dlg=new QDialog(parent,"nazwa");
box=new QComboBox(dlg,"nazwa_combo");
//important
connect(box,SIGNAL(activated(int)), this, SLOT(jakas_funkcja()));
}
public slots:
int jakas_funkcja();
};
void Klasa1::funkcja1()
{
KlasaDialog dialog(this);
}
and i don't know why when the program runs, it generate error: "No such
slot: QDialog::jakas_funkcja()" ((
how connect's it??