I intend to draw a long rectangle bar on a single QListWidgetItem and the code goes like:
QIcon icon(":/black.jpg");
ui->TimeLineDisplayer->addItem("");
ui->TimeLineDisplayer->item(0)->setIcon(icon);
ui->TimeLineDisplayer->setIconSize(QSize(500, 20));
where TimeLineDisplayer is a QListWidget. The current problem is, there seems to be a limit to the width of the icon. So HOW can i draw a bar long enough on an item of a QListWidget?