[Qt-interest] Webkit know about the QApplication::style()???
Bartosh Wroblevksy
bartosh at live.com
Thu Feb 18 13:09:55 CET 2010
Thanks. My question may have seemed convoluted because I was trying to figure out what is happening under the hood when I set a Palette like this
aPalette.setColor( QPalette::Disabled, QPalette::Base, Qt::red )setPalette( aPalette );
inside of a webview and then I do
setHtml("<html><body><input type=\"text\" \ value=\"disabled\" \ </body></html>)
I would hope for a disabled lineEdit that has a red background color. But I am getting the style background color.
I am no Webkit expert but there seems to be something missing in
RenderThemeQt::paintTextField(RenderObject* 0, const RenderObject::PaintInfo& i, const IntRect& r)
or something is not working in
QStyle::drawPrimitive itself
What is going on here?
Cheers.
> Date: Thu, 18 Feb 2010 15:53:59 +0530
> From: girish at forwardbias.in
> To: bartosh at live.com
> Subject: Re: [Qt-interest] Webkit know about the QApplication::style()???
>
> Bartosh Wroblevksy wrote:
> > So here's a philosophical question. When I set a style with
> > QApplication::setStyle(). Do any of the classes in the Webkit "know"
> > about it?
>
> Yes, WebKit uses the new style that you set.
>
> Girish
_________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100218/527cd2ed/attachment.html
More information about the Qt-interest-old
mailing list