Qt 6.12 LTS is out! See what's new in the release
blog
[SOLVED] Help on QListWidget's Event..
General and Desktop
3
Posts
2
Posters
3.4k
Views
1
Watching
-
Hi Guys,
I want to have an event , if none on the items in the QListWidget are selected.Becoz in My application, if any one of the ListWidget items has selected then i will be enabling my Delete button like this
@void TestDlg::on_TestListWidget_pressed(const QModelIndex &index)
{
ui->deleteBtn->setEnable(true);
}
@but this button is keep on enabled , but i want to disable this button , if no items are selected from the QListWidget
-
QListWidget has itemSelectionChanged(), it’s fired when selection is somehow changed. Just connect to this signal and check, whether something is selected.
-
Thanks for your valuable inputs.. DSav..
Its working fine...