标题:【提问】QPE 2.2: How to implement a ListBox with background image
作者:andyyeh75
日期:2006-03-08 04:19
内容:
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):
#1 Re:【提问】QPE 2.2: How to implement a ListBox wi [XChinux 03-10 05:40]
不知道下面的对你有没有帮助:
autoFillBackground : bool
This property holds whether the widget background is filled automatically.
If enabled, this will cause Qt to fill the background using the widget's background role before invoking the paint event.
In addition, Windows are always filled with QPalette::Window, unless the WA_OpaquePaintEvent or WA_NoSystemBackground attributes are set.
This property was introduced in Qt 4.1.