PDA

View Full Version : Inheritance and signal



!Ci
28th February 2007, 21:03
I've got problem with connecting any signal from my class (it inherits from qtreewidget). I've found similar problem in this thread:
http://www.qtcentre.org/forum/f-qt-programming-2/t-no-such-signal-338.html
but I still can't solve the problem. I always get message:

Object::connect: No such signal Zespoly::itemClicked(QTreeWidgetItem*item,int)

jpn
28th February 2007, 21:08
You must not put any parameter names but only types into connect() statement.


connect(sender, SIGNAL(itemClicked(QTreeWidgetItem*, int)), receiver, SLOT(...));

!Ci
1st March 2007, 11:11
OMG:o
It was late when I had this problem - I was definitely too tired. Thanks;)