开发者

QListWidget on freemantle

开发者 https://www.devze.com 2022-12-20 18:09 出处:网络
I have a problem with QListWidget on freemantle (maemo, n900). I want to use two QListWidget on same window and allow the user to pick on number in each window.

I have a problem with QListWidget on freemantle (maemo, n900).

I want to use two QListWidget on same window and allow the user to pick on number in each window.

W开发者_如何学运维hen the user use the second QListWidget, the "blue" color on it disparear. How to change the color of a item selected in QListWidget which is not active ?


Kind of a hack, but you can change the QPallete of both QListWidgets so that the inactive color is the same as the active color.

http://qt.nokia.com/doc/4.6/qpalette.html#ColorGroup-enum

There is code sample here: http://www.qtcentre.org/threads/17922-two-qlistwidgets that might be of use to you. I don't have access to any mobile Qt-enabled devices to test it out but it should work in theory.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号