Now i need the QListWidget show the picture of the background ,how should i do?
Now i need the QListWidget show the picture of the background ,how should i do?
Yes ,
You can do it ,
Try this different style for doing that, Use the below link :
http://doc.qt.nokia.com/4.6/qapplica...tml#setStyle-2
And use the motif style for doing that..
Best regards,
thanks for your reply
but actually i don't konw how to do also.
i want to insert an image to show my problem ,but i don't konw how to insert .what a pity!
hi,
i do want to know why the style is related to QListWidget's transparent
I want the QListWidgetItem at the right part transparent so that the background picture can be shown. How should i do? thanks
![]()
Last edited by tfjy2008; 2010-05-26 at 10:03.
There is an example of customizing
QListView (for the QListWidget it's being the same)
http://doc.trolltech.com/4.6/stylesh...zing-qlistview
property of your interest is background-image
You should apply these style-sheet rules with QApplication::setStyleSheet() or QWidget::setStyleSheet()
http://doc.qt.nokia.com/4.6/qapplica...tyleSheet-prop
http://doc.qt.nokia.com/4.6/qwidget....tyleSheet-prop
Check out also this thread also
http://discussion.forum.nokia.com/fo...d.php?t=192017