Simply what I am trying to achieve is a thumbnail and some data like shown above the image as an item in ListWidget in PyQt5.
I have the URL of a thumbnail and all the data like title, channel name, etc.
I am able to get the title in a list widget by doing this:
titles = ['title1','title2']
self.listWidget.addItems(titles)
The design is created by Qt Designer and converted to python using pyuic5.
This is my first question in StackOverflow. Also, I know that I should share code but code is normally generated by pyuic5 in which there is only listWidget (item based).
Thanks in advance.
If you want to put images with text in your QListWidget you need to combine QIcon with Text into a QListWidgetItem like this:
And you will get something like this: