Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-88

QtColorTriangle uses bad brush for background

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Color Picker
    • None
    • Ubuntu 9.10, but this should happen everywhere

    Description

      The line 215 of qtcolortriangle.cpp of the QtColorTriangle at http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Widgets/qtcolortriangle uses the following code:

      p.fillRect(bg.rect(), palette().mid());

      as a result, it shows the background as a kind of dark gray compared to the smooth light gray of the rest of the application.

      As a work around I replaced that line with:

      p.fillRect(bg.rect(), palette().background());

      Which works decently, but I think the overall class would need a serious rewrite. It looks like kinda old code, and it'd be much better if it used a transparent background instead of my palette background hack. I've tried setting it to Qt::transparent without success (shows black background),

      Attachments

        Activity

          People

            Unassigned Unassigned
            philippe.vaucher Philippe Vaucher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: