Detecting if an item is clicked at at some row in a QlistWidget

前端 未结 3 843
误落风尘
误落风尘 2021-01-22 04:43

I Have been given this simple task ,

I have this list where i instert items whenever ok is clicked,void Form::ok() handle that event is supposed to add new list items t

3条回答
  •  旧时难觅i
    2021-01-22 04:46

    You need to connect the itemClicked(QListWidgetItem * item) signal to some slot to handle clicks on an item.

提交回复
热议问题