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:

Qt Code:
  1. public:
  2. QTreeView *treeView;
  3. protected slots:
  4. virtual void currentChanged (const QModelIndex & current, const QModelIndex & previous);
  5.  
  6. void GamesTab::currentChanged (const QModelIndex & current, const QModelIndex & previous)
  7. {
  8. doGameInfo();
  9. }
To copy to clipboard, switch view to plain text mode 

What am I missing anyone ?