Unsolved How to detect QListWidget events with custom widget loaded
-
I have a custom Widget within a QListWidgetItem. The QListWidget is no longer responding to mouse events etc once instances of these are loaded in. But it's easy to get mouse events from the custom widget. Is there a way of adapting the QListWidget to use its standard functions such as currentItem()? Or would the normal process be to connect signals in the custom QWidget to slots in the GUI, or use an event handler?
-
@robbiecooper said in How to detect QListWidget events with custom widget loaded:
Is there a way of adapting the QListWidget to use its standard functions such as currentItem()?
Could you clarify the question?
For the record, the correct way of doing this kind of stuff is to implement a custom QStyledItemDelegate, not to abuse
setItemWidget
-
@VRonin In other words- to detect the mouse from the qlistwidget and access the qlistwidgetitem, and its contents, through that, rather than through the custom widget? I'll check out custom qstyleditemdelegate, thanks!