Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6057

Impossible to set a palette on QWebPage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Moved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.6.0
    • None
    • None

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vestbo Tor Arne Vestbø
            heimrich Karsten Heimrich
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes