[Qt-interest] Webkit know about the QApplication::style()???
Bartosh Wroblevksy
bartosh at live.com
Thu Feb 18 15:04:28 CET 2010
And yet changing the palette of the application like this
aPalette.setColor( QPalette::Active, QPalette::Base, Qt::Red);qApp->setPalette( aPalette )
and doing
setHtml("<html><body><input type=\"text\" \ </body></html>)
renders the background of the generated lineEdit red. It looks to me that this is more of an edge case with some ambiguity.
The documentation states"The palette is used by the widget's style when rendering standard components..."
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
_________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100218/d3ab5871/attachment.html
More information about the Qt-interest-old
mailing list