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

Painting engine don't respect windows theme hyperlink color

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.6.2, 5.8.0
    • GUI: Look'n'Feel
    • None
    • Windows 8.1 x64

      Seems like Qt painting engine don't respect windows theme in some cases. For example all hyperlinks are blue which is not always good for text readability.

      Sample code

      #include <QApplication>
      #include <QWidget>
      #include <QVBoxLayout>
      #include <QLabel>
      #include <QTextEdit>

      int main(int argc, char *argv[])
      {
      QApplication a(argc, argv);
      QWidget w;
      w.setLayout(new QVBoxLayout());
      QLabel* label = new QLabel("<a href='http://qt.io'>qt.io</a>");
      QTextEdit* edit = new QTextEdit("<a href='http://qt.io'>qt.io</a>");
      w.layout()->addWidget(label);
      w.layout()->addWidget(edit);
      w.show();
      return a.exec();
      }

      Just choose any high contrast windows theme and run sample code to reproduce the bug.

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

            iamsergio Sergio Martins
            yuri_q Yuri M
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes