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

When setting a palette on a QComboBox's lineedit then it gets disregarded on Windows Vista

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • 4.5.3
    • GUI: Look'n'Feel
    • None
    • Windows Vista
    • aef084fc06e325c9b206c274d5b297660b7c671f

    Description

      When setting a palette on a QComboBox's lineedit then it gets disregarded on Windows Vista.

      #include <QtGui>
      
      int main(int argc, char **argv)
      {
          QApplication a(argc, argv);
          QWidget w;
          QComboBox *cb = new QComboBox(&w);
          cb->addItems(QStringList() << "A" << "B" << "C");
          cb->setEditable(true);
          QPalette p = cb->lineEdit()->palette();
          p.setColor(QPalette::Base, Qt::red);
          cb->lineEdit()->setPalette(p);
          w.show();
          return a.exec();
      }
      

      Attachments

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

        Activity

          People

            bachewii Jens
            anshaw Andy Shaw (closed Nokia identity) (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes