如何更改 QxtLabel 的文本颜色
我正在查看 libqxt (Qt 的扩展库),并且无法更改 QxTLabel 的文本颜色;这让我发疯。
QxTLabel 扩展了 QFrame。 QFrame 对文本一无所知。我尝试通过表单编辑器更改调色板,但这似乎也没有任何作用。
我还尝试更改样式表,但同样,QFrame 不了解文本,并且 QxTLabel 也没有放弃任何内容。
QxTLabel 的完整成员列表中也没有任何内容让我感到惊讶。想法?
I'm checking out libqxt (an extension library for Qt) and cannot change the text color of a QxTLabel; it's driving me nuts.
QxTLabel extends QFrame. QFrame doesn't know anything about text. I tried changing the palette via the Form Editor but that didn't appear to do anything either.
I also tried to change the style sheet but, again, QFrame doesn't know about text and QxTLabel isn't giving anything up either.
Nothing is jumping out at me from the full member list for QxTLabel either. Thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,这比我想象的更难找到,但我最终得到了它:
以前,我试图设置前景色。
Well, that was harder to find than I expected but I eventually got it:
Previously, I was trying to set foreground-color.