Now i need the QListWidget show the picture of the background ,how should i do?
Printable View
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 :
[url]http://doc.qt.nokia.com/4.6/qapplication.html#setStyle-2[/url]
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
[IMG]http://photo.renren.com/getphoto.do?id=2990799374&owner=89903704[/IMG]
There is an example of customizing
QListView (for the QListWidget it's being the same)
[url]http://doc.trolltech.com/4.6/stylesheet-examples.html#customizing-qlistview[/url]
property of your interest is background-image
You should apply these style-sheet rules with QApplication::setStyleSheet() or QWidget::setStyleSheet()
[url]http://doc.qt.nokia.com/4.6/qapplication.html#styleSheet-prop[/url]
[url]http://doc.qt.nokia.com/4.6/qwidget.html#styleSheet-prop[/url]
Check out also this thread also
[url]http://discussion.forum.nokia.com/forum/showthread.php?t=192017[/url]