[SOLVED] Help on QListWidget's Event..

  • 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)

    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...

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.