Hi Guys,
I am pretty new to programming and I am starting to learn C++ and QT.
As a little project to get me going I am writing a little Twitter application.
My problem is that I want to have a List with with the users icon, name and status listed.
I have implemented this using a QListWidget and adding QListWidgetItems using a QWidget with the information laid out (see attachment).
This seems a pretty ugly way to implement what should be a simple feature and is causing real problem when implementing reply and open link features when the user clicks the list item.
I have read the documentation, googled and searched this forum and I am a bit dizzied by all the information.
What i think I need to do is subclass QStyledItemDelegate to draw the information and react to the users click.
Please could you suggest the best way to implement this?
Should I use a subclassed tree model and draw the information from there and on users click pass the model index to the next function?
Any help will be very appreciated!!
Thanks,
Dubstar_04
![]()
Bookmarks