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

QProxyStyle for QPushButton works strange

    XMLWordPrintable

Details

    Description

      Using a QProxyStyle with custom style sheets for QPushButton works strange. See the attached images, the first one (style.png) is without QProxyStyle. Both examples uses simple style sheet:
      QWidget {
      background: #535353;
      font: 12px Arial;
      color: #FFFFFF;
      }

      Widgets in the second example (proxy.png) are using this dummy proxy-style:
      class TestStyle : public QProxyStyle {};
      The QLabel is rendered correctly, but the buttons are wrong (rendered without style sheet?)

      Attachments

        1. proxy.png
          proxy.png
          12 kB
        2. style.png
          style.png
          10 kB
        3. toolButtonTest.zip
          5 kB
        4. toolButtonTest-with-project-file.tar.gz
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            rivierakid Martin Dusek
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes