I want to get information from the item in the QListWidget. The item is set using setItemWidget.
I got an answer, that i should use cast on widget and get info that way.
I have no idea what did that mean, but i tried some things - nothing worked.
My list item contains few labels with text and some pictures. I need to get the text that is in the labels.
My last thought was:
Qt Code:
  1. QWidget *widget = qobject_cast<QWidget *>(Custom_Widget);
To copy to clipboard, switch view to plain text mode 
But i think that is completely wrong...
Also i tried
Qt Code:
  1. QWidget *widget = static_cast<QListWidgetItem *>(listWidget->item(0));
To copy to clipboard, switch view to plain text mode 
But this is still wrong... Can someone help?