Results 1 to 11 of 11

Thread: How to build a transparent ScrollArea widget?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Default How to build a transparent ScrollArea widget?

    I'd like to build my own ScrollArea widget, which would be transparent if it overlaps other widgets or texts, based on QScrollArea.

    Basically I set WA_NoSystemBackground attribute on both ScrollArea and its content widget, but the resulting appearance was not exactly expected.
    1. the entire ScrollArea displayed a black background, I've no idea why it's black or it just meant that black represented blank background. What I expected was that it would display everything intact.
    2. the button under ScrollArea can be viewed and can't respond to mouse click, this demonstrated the transparency effect partially worked, but the button was gone away while scrolling and never got repainted.
    3. I'm afraid there is some extra paintings supposed to be handled in the case, but how?

    I've built a quick demo to show my problem, hopefully someone could give me some reference. thx.

    QTransparentScrollArea.zip
    Last edited by myfifth; 25th January 2011 at 09:33.

Similar Threads

  1. Transparent dialog widget
    By girishgowda in forum Qt Programming
    Replies: 3
    Last Post: 2nd July 2010, 09:11
  2. How to get an area of the widget transparent...???
    By kapoorsudhish in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 5th March 2010, 04:20
  3. Qt transparent Widget
    By Vipin Vijayan in forum Qt Programming
    Replies: 2
    Last Post: 27th January 2009, 12:33
  4. Qt4.1 Transparent Widget
    By djoul in forum Qt Programming
    Replies: 14
    Last Post: 26th September 2006, 16:06
  5. transparent widget
    By hijinks in forum Qt Programming
    Replies: 2
    Last Post: 20th February 2006, 09:43

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.