I'm sorry my english, I speak spanish.
I use C::B + Qt on Linux,
when I try to do my own public slots method I got an Error : "undefined reference to vtable" WHY???
THANKS FOR YOU HELP!!!!!!
HERE the code:
#ifndef COUNTER_H_INCLUDED
#define COUNTER_H_INCLUDED
#include <QtGui> //include todo
class Counter : public QWidget
{
Q_OBJECT
private:
QPushButton * but1;
QPushButton * but2;
public :
Counter() : QWidget()
{
but1 = new QPushButton("the 1", this);
but1->setGeometry(10,50,100,50);
but2 = new QPushButton("the 2", this);
but2->setGeometry(200,50,100,50);
QObject::connect(but1, SIGNAL(clicked()), this, SLOT(Esconder2()));
}
public slots:
void Esconder2(){ but2->hide(); }
};
#endif // COUNTER_H_INCLUDED