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

Can't change background color of QDoubleSpinBox in Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.6.2
    • None
    • Ubuntu 9.10

      The following code works fine in Windows XP to switch the background color of a QDoubleSpinBox between blue and the defult value:
      On Linux (Ubuntu 9.10 and several earlier Ubuntu releases it doesn't work).

      template<> void selectScanWidget(QDoubleSpinBox* w, const std::string&, bool bScan)
      {
      if(bScan)

      { palInitial = w->palette(); palScanning.setColor(QPalette::Base, QColor(150, 170, 255)); //light-blue }

      w->setPalette(bScan ? palScanning : palInitial);
      }

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

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            trosen Till Rosenband
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes