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

QLineEdit QSpinBox QDoubleSpinBox setStyleSheet can not change background color 不能设置背景色彩

    XMLWordPrintable

Details

    • macOS, Windows

    Description

      QLineEdit QSpinBox QDoubleSpinBox can not change background color 不能设置背景色彩

      code :

      QLineEdit *nameEdit = new QLineEdit(this);

      nameEdit->setGeometry(30,50,350,50);

      nameEdit->setText("QLineEdit can not change background color");

      nameEdit->setStyleSheet(// "QLineEdit { background-color: rgb(255, 0, 0) }" "color: blue;" "background-color: yellow;" "alternate-background-color: blue;" "selection-color: yellow;" "selection-background-color: blue;" ); 

      Attachments

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              waterblue lee ning
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes