PDA

View Full Version : [QT4 & XP] connect on QtreeView



incapacitant
2nd March 2006, 11:44
Hi,

I try to connect a clicked signal in my QTreeView table as follows :



connect( table, SIGNAL( Clicked( const QModelIndex() ) ),
this, SLOT( clickedActivated( const QModelIndex() ) ) );



But it does not work, probably because I have it all wrong.
Can you help ?

jpn
2nd March 2006, 12:08
"Clicked" -> "clicked" and parameter types need correcting:


connect(table, SIGNAL(clicked(const QModelIndex&)), this, SLOT(clickedActivated(const QModelIndex&)));