currentChanged protected slot - cant get working
Hi,
I've been playing with Qt 4.1.1 now for a few weeks, getting my app done.
Still a newbie however as i have a simple problem.
currentChanged protected slot on a treeView, I cant seem to get working
I have a treeView with some rows. I got clicked() working, but I really need a currentChanged to work when the row selected is changed.
here's some code below:
Code:
public:
protected slots:
{
doGameInfo();
}
What am I missing anyone ?
Re: currentChanged protected slot - cant get working
You should use signals and slots:
Code:
//...
void someClass
::onCurrentChanged(const QModelIndex ¤t
){ doGameInfo();
}