PDA

View Full Version : How to implement a ListBox with background image



andyyeh75
7th March 2006, 13:00
Hello,

My environment is QPE 2.2. And it's a hurry issue.
In an individual APP, I have to create a Listbox with a background image on its items' back.
I have tried to do it by using QPallete, and setting its QColorgroup::Base as a Pixmap.

Although it seems look right at first, it still not what I need.
By this way, the background will be painted overlap when moving the highlight bar exceeding the screen range.

I need a listbox with background image that the background shows always normal.

Thanks in advance.

Below image shows my requirement. A List with background image.
andyyeh has attached this image (reduced version):

zlatko
7th March 2006, 14:14
What version of qt are you use?

andyyeh75
8th March 2006, 03:35
my Qt version is 3.3.5
QTE version 2.3.12
QPE version 2.2.1

zlatko
8th March 2006, 09:55
for Qt 3.3.5 try setPaletteBackgroundPixmap()