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

QToolButton ignores palette changes when using GTKStyle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.6.2, 4.7.0
    • GUI: Look'n'Feel
    • None
    • Gentoo Linux KDE, Debian Lenny Gnome, Ubuntu 9.10 Gnome, Ubuntu 10.04 Gnome.

      When trying to change the background color of QToolButton widgets using this code:

      QToolButton* button = new QToolButton(this);
      QPalette p(button->palette());
      p.setColor(QPalette::Button, QColor(Qt::black));
      button->setPalette(p);

      the background color of the button doesn't change when launching the application with "-style gtk". The Gtk theme used does not seem to matter at all (Clearlooks, Murrine, QtCurve-gtk, etc.)

      It works fine with all other styles that come with Qt (Plastique, CDE, etc.) as well as KDE's Oxygen.

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

            bachewii Jens
            realnc Nikos Chantziaras
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes