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

QLineEdit in QComboBox style not applied

XMLWordPrintable

      The following style when set on a dialog does not get applied:
      QComboBox QLineEdit

      {background-color: rgb(255, 255, 0);}

      As a workaround the following code has to be used for every combo box:
      ui->comboBox->lineEdit()->setStyleSheet(styleSheet());

      Note that this is not a dusplicate of QTBUG-4322 as you don't have to use setLineEdit() to see the issue.

        1. qtbug19837_diag.diff
          7 kB
        2. qtbug19837_log.txt
          24 kB
        3. qtbug19837.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            richard Richard Moe Gustavsen
            tomasz_grobelny Tomasz Grobelny
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes