View Full Version : QTreeWidget and doubleClicked signal

2nd March 2006, 04:10

I am programming in C++ on WinXP, using Qt4.1

Does anyone know how to connect signals and slots for QTreeWidget?

What I am trying to do is open another form after a QTreeWidgetItem has been double clicked. I took a look at the help manual, but did not get much from it:

void QAbstractItemView::doubleClicked ( const QModelIndex & index )

I tried replacing QModelIndex& with QTreeWidgetItem*, int column but it does not seem to work.

2nd March 2006, 07:16
you can try

void itemDoubleClicked ( QTreeWidgetItem * item, int column ) signal