×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Rendering problem in QScrollArea

    I have a problem with a group of about a dozen QPushButtons inside a QScrollArea. Starting with the scroll area oriented at the top of the underlying widget, as I scroll down, some of the QPushButtons near the bottom of the area are not properly rendered as they come into view. In particular, the background is off-color and the text on the buttons is "shadowed" -- showing a light ghost of the text from the previous button in that position.

    I rigged up a loop to do first update(), and when that didn't work, repaint() on the buttons as they come into view but it only helped a little -- the text is no longer shadowed but the backgrounds are still off-color.



    As you can see, the buttons #19 and #20 have a coloration different from the rest. This miscoloring is even preserved if the buttons are pressed (switching to normal "pressed" coloration) and released (switching back to being miscolored).

    Scrolling up and down a bit will clear it up, but that's not something we should require users to do.

    Note that this is on a Nokia N97 -- I'm not set up at present to test it on a desktop.

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Rendering problem in QScrollArea

    Of course another possibility is that it's the other buttons that are miscolored -- I didn't tell them to be that blue color. But the shadowing problem (before I added gratuitous repaint() ops) was on the lower buttons.

  3. #3
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Rendering problem in QScrollArea

    OK, the bluish color was a clue -- it was picking up the background from the N97's default blue screen (even though the red border you see extends under the entire area). And, oddly, once a background color is provided the problem with the ghosting of the text goes away too.

  4. #4
    Registered User
    Join Date
    Jul 2008
    Posts
    103

    Re: Rendering problem in QScrollArea

    I ran into a similar rendering problem: http://www.developer.nokia.com/Commu...llArea-problem , but mine is worse. Can it be solved other way than setting background color to QScrollArea?
    Last edited by catharsis; 2011-06-24 at 12:13.

Similar Threads

  1. Problem with CAknDoubleStyleListBox with a CAknSearchField
    By jjig in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-09-17, 00:58
  2. the problem about rendering to the screen
    By hezhengzhou in forum Symbian
    Replies: 5
    Last Post: 2009-01-05, 10:03
  3. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  4. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  5. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×