freemantle 上的 QListWidget

发布于 2024-08-23 01:19:53 字数 177 浏览 5 评论 0原文

我在 freemantle(maemo、n900)上遇到 QListWidget 问题。

我想在同一窗口上使用两个 QListWidget 并允许用户在每个窗口中选择数字。

当用户使用第二个 QListWidget 时,其上的“蓝色”颜色会消失。 如何更改 QListWidget 中选定的未激活项目的颜色?

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.

When 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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷乱花海 2024-08-30 01:19:53

有点黑客,但您可以更改两个 QListWidgetsQPallete ,以便非活动颜色与活动颜色相同。

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

这里有代码示例: http://www .qtcentre.org/threads/17922-two-qlistwidgets 可能对您有用。我无法访问任何支持 Qt 的移动设备来测试它,但理论上它应该可以工作。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文