1 Attachment(s)
Gif as Background for QListWidget or transparent background
Hi
Iam trying to add Gif Image as an background for the QListWidget
Here is my Part of Code to understand what i have done
Code:
resize(800,600);
myMovie
= new QMovie(":/images/icon_gif.gif");
movieLabel
= new QLabel(this);
movieLabel->setMovie(myMovie);
myMovie->start();
listWidget
->setViewMode
(QListView::IconMode);
listWidget->resize(800,600);
sample
->setIcon
(QIcon(":/images/shutdown.png"));
sample->setText("Sample");
sample->setTextAlignment(Qt::AlignHCenter);
listWidget->addItem(sample);
listWidget->setItemWidget(sample,movieLabel);
The Gif image was not displaying in background with the animation that it contains
and the output is Attachment 11806
OR else how can i make a QListWidget Transparent so that i will be able to see the components that are present behind it.
Please Guide me,
Thanks in advance,
Rohith.G