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

Can't change background color of QDoubleSpinBox in Linux

    XMLWordPrintable

Details

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

    Description

      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);
      }

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes