[Qt-interest] Why there is no QListView::currentIndexChanged(QModelIndex, QModelIndex)
Ian Thomson
Ian.Thomson at iongeo.com
Fri Jan 30 09:59:22 CET 2009
Actually, if you want a signal you probably want
http://doc.trolltech.com/4.4/qitemselectionmodel.html#currentChanged
Every view has a selection model which you can access through
http://doc.trolltech.com/4.4/qabstractitemview.html#selectionModel
So you'll want to do something like
connect(myView->selectionModel(), SIGNAL(currentChanged(const
QModelIndex&, const QModelIndex&)), etc...
Cheers,
Ian
Ian Thomson wrote:
> Hi,
>
> Perhaps you are looking for this:
> http://doc.trolltech.com/4.4/qabstractitemview.html#currentChanged
>
> It exists in QListView.
>
> Cheers,
> Ian.
>
> Jesús Fernández wrote:
>> Hi,
>>
>> why there is no this signal in the default Qt?
>>
>> Regards
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately notify the sender and delete the original.
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list