joval
28th July 2012, 16:27
Hi
I have something like:
connect( list, SIGNAL( itemDoubleClicked( QListWidgetItem* ) ), this, SLOT( slotFromListWidget( QListWidgetItem* ) ) );and then in slotFromListWidget function we do some things with item->text(). Is there any way to directly pass the text() return value?
I mean something like
connect( list, SIGNAL( itemDoubleClicked( QListWidgetItem* ) ), this, SLOT( slotFromListWidget( (QListWidgetItem*).text() ) ) ); while the slot will be
slotFromListWidget(QString str) but such things don't work.
Thanks in advance.
I have something like:
connect( list, SIGNAL( itemDoubleClicked( QListWidgetItem* ) ), this, SLOT( slotFromListWidget( QListWidgetItem* ) ) );and then in slotFromListWidget function we do some things with item->text(). Is there any way to directly pass the text() return value?
I mean something like
connect( list, SIGNAL( itemDoubleClicked( QListWidgetItem* ) ), this, SLOT( slotFromListWidget( (QListWidgetItem*).text() ) ) ); while the slot will be
slotFromListWidget(QString str) but such things don't work.
Thanks in advance.