Details
-
Bug
-
Resolution: Moved
-
Not Evaluated
-
None
-
4.6.0
-
None
-
None
Description
Impossible to set a palette on QWebPage. See the following code:
QPalette p = palette();
p.setColor(QPalette::Inactive, QPalette::Highlight,
p.color(QPalette::Active, QPalette::Highlight));
p.setColor(QPalette::Inactive, QPalette::HighlightedText,
p.color(QPalette::Active, QPalette::HighlightedText));
setPalette(p);
We use this code to highlight search results inside the documentation even if the QWebPage used to show the hit does not have focus. Since this is not working the highlight color on all windows systems is nearly impossible to see (light gray). We wark around in Assistant by setting the application palette as soon as the inplace search is show, but this is no option in Creator since it messes up the whole style. Please note this can only be seen on Windows.
See also: http://bugreports.qt.nokia.com/browse/QTCREATORBUG-235
Attachments
Issue Links
- is required for
-
QTCREATORBUG-235 Almost-invisible color highlight when searching
- Closed
-
QTBUG-3335 QT WebKit Assistant search text highlighting
- Closed