0

I have QListWidget, in that I had added the items. i had made the QListWidgetItems to scroll from right to left in a QWidget. Now i want to add a Icon image before every item that is Scrolling in the QWidget. How to draw an Icon image in a QWidget ? Plz help me with your Solutions. Thanks in Advance.

New Moon
  • 787
  • 6
  • 21
  • 35

1 Answers1

2

Why not trying QListWidgetItem::setIcon( QIcon & ) ?

Use QListWidgetItem * QListWidget::item ( int row ) iterating from 0 to QListWidget::count() for setting to all existing items in QListWidget.

Valentin H
  • 7,240
  • 12
  • 61
  • 111