Results 1 to 2 of 2

Thread: Transparency with webkit and Phonon

  1. #1
    Join Date
    Nov 2008
    Posts
    5

    Default Transparency with webkit and Phonon

    Hello,

    I want use webkit in front of phonon widget with transparency.
    Anyone have ideas? With this code didnt worked.
    Qt Code:
    1. centralWidget->webView->setWindowOpacity(0.0);
    2. centralWidget->webView->setAttribute( Qt::WA_OpaquePaintEvent );
    3. centralWidget->webView->setBackgroundRole(QPalette::NoRole);
    4. centralWidget->webView->setPalette(QPalette(Qt::transparent));
    To copy to clipboard, switch view to plain text mode 
    Last edited by jpn; 4th December 2008 at 21:26. Reason: missing [code] tags

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Transparency with webkit and Phonon

    Qt Code:
    1. centralWidget->webView->setWindowOpacity(0.0);
    To copy to clipboard, switch view to plain text mode 
    you should give a 1.0 value if you want full opacity.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

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.