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

Using a CSS to add a border to a QScrollArea causes it to get a misplaced wallpaper background

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.7.1
    • Widgets: Style Sheets
    • wk45, winscw emulator

    Description

      Normally in the current Qt/Symbian versions a QScrollArea has a single color background. Using a CSS to add a border to the QScrollArea causes a background image to appear. See the attached picture taken from a winscw emulator.

      The first problem is that a background image should probably not appear when only a border is set.

      The second problem is that the background is incorrectly positioned starting at the origin of the QScrollArea. This would look bad if there are multiple components visible on screen each having the background positioned like this. The background should be positioned like a "wallpaper" in such a way that the background patterns of all visible widgets have the same origin.

      The attached test application can be used to reproduce the problem. A theme with wallpaper backgrounds is required to see the issue.

      Attachments

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

        Activity

          People

            satu.m.makela satu makela
            suistoma Jussi Suistomaa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes