Hi,
I have installed Qt and Qt for VS plugin. Everything works fine, UI applications compile and run that's ok, but connecting signals and slots doesn't. I have Q_OBJECT
in my class and for connecting I am using this code in constructor:
connect(ui.mainTableView, SIGNAL(activated(const QModelIndex &)),
this, SLOT(showDetail(const QModelIndex &)));
EDIT:
showDetail method:
void MyClass::showDetail(const QModelIndex &index)
{
this->setWindowTitle("it works");
}
window title is not changed and breakpoint is not reached.
moc files are generated in Generated Files directory, but moc file of that class is empty (others not), I think that it is because the class has no signal, but only one slot.
even connections generated by Designer don't work and the call of connect method returns true
.