Results 1 to 2 of 2

Thread: Transparent Partial Window on QWebKit

  1. #1
    Join Date
    Oct 2012
    Posts
    12

    Question Transparent Partial Window on QWebKit

    Hi all,

    Recently, I have some problems about making the browser transparent and see thought the desktop.
    I can make the full transparent of browser by setting the alpha for the application and qwebpage.

    But, I want to make partial windows on browser to be transparent now. For example, I want to set a box on window to be transparent only, and the other region is not.

    Do you have any suggestion? Thank you very much.

  2. #2
    Join Date
    Jun 2011
    Posts
    56
    Thanks
    7
    Qt products
    Qt4

    Default Re: Transparent Partial Window on QWebKit

    You first need to obtain a QWidget*, to the widget, which may not be possible as the WebKit includes it's own controls. After you have the pointer, you can set an attribute, say Qt::WA_TranslucentBackground. You can also play with the background color/brush of the widget and, of course, any other color/brush, by setting alpha values in it. If results are unsatisfactory, you can write a custom QWidget.

Similar Threads

  1. How to set Qt window transparent?
    By montylee in forum Qt Programming
    Replies: 17
    Last Post: 24th December 2013, 20:11
  2. Replies: 1
    Last Post: 25th May 2012, 16:00
  3. transparent window with X11 and Qt4.2.3
    By jrodway in forum Qt Programming
    Replies: 0
    Last Post: 23rd February 2012, 13:27
  4. I can't get a transparent window
    By xiangxw in forum Qt Programming
    Replies: 0
    Last Post: 10th December 2010, 14:00
  5. Partial window transparency
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 10th March 2009, 14:53

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.