PDA

View Full Version : Adding signal to own model class



michciu
23rd April 2010, 18:26
Hello,
I'm writing my own model class (subclass of QAbstractTableModel).

Is there possibility of adding new signal to such a class?
When I build my project I get 'undefined reference' error in line, in which I'd like to emit my own signal.

squidge
23rd April 2010, 22:17
Did you define the signal in your header file?

borisbn
24th April 2010, 04:00
And did you include Q_OBJECT macro in the start of your class declaration ? Show us you code if yes.