i use a listView
i select one line, is there have any event ?
if selection changed , is it can emit any event ?
how to use it ?
i find i function
void QAbstractItemView::selectionChanged ( const QItemSelection & selected, const QItemSelection & deselected ) [virtual protected slot]
To copy to clipboard, switch view to plain text mode
This slot is called when the selection is changed. The previous selection (which may be empty), is specified by deselected, and the new selection by selected.
See also setSelection().
but, it's don't work..
my code
{
qDebug()<<"selection changed !";
}
void MusicSettingsWidget::selectionChanged ( const QItemSelection & selected, const QItemSelection & deselected )
{
qDebug()<<"selection changed !";
}
To copy to clipboard, switch view to plain text mode
Bookmarks