[Qt-interest] Webkit know about the QApplication::style()???
Bartosh Wroblevksy
bartosh at live.com
Mon Feb 22 12:07:25 CET 2010
What is more, the developers of Arora (which began as a demo to test Webkit), may have thought that setting a Palette on a webview changes the colors of the rendered html components
line 114 of webview.cpp
if (p.color(QPalette::Window) != Qt::white) { QWindowsStyle s; p = s.standardPalette(); setPalette(p); }
has an effect on the background color of an html rendered disabled lineEdit. Take the line away and the background color of a disabled lineEdit is grey, put it back and it's white.
Date: Thu, 18 Feb 2010 19:17:16 +0530
Subject: Re: [Qt-interest] Webkit know about the QApplication::style()???
From: talk2amulya at gmail.com
To: bartosh at live.com
It works as expected..
On Thu, Feb 18, 2010 at 7:11 PM, Bartosh Wroblevksy <bartosh at live.com> wrote:
So if this does not render a lineEdit with a red background
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>)
Is it actually a bug in Qt or does it work as expected?
All your Hotmail contacts on your phone. Try it now.
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
Not using Hotmail on your phone? Why not? Get it now.
_________________________________________________________________
Introducing Windows® phone.
http://go.microsoft.com/?linkid=9708122
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100222/c718b58c/attachment.html
More information about the Qt-interest-old
mailing list