Results 1 to 3 of 3

Thread: make the widget transparent to see the video visible from backend.

  1. #1
    Join Date
    May 2015
    Posts
    30
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default make the widget transparent to see the video visible from backend.

    Dear Experts,

    How to make the widget transparent so that background playing video should be visible. For example if I open an any widget (or any menu) it should not hide the back ground video which is playing, instead it should sow that video in the background which we can watch along with the menu and their menu -items should be transparent. As I'm developing one widget for my embedded device.

    I would really appreciated any help/suggestions. Thanks in advance.

    Regards,
    Maiya

  2. #2
    Join Date
    Sep 2014
    Location
    Sydney, Australia
    Posts
    16
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: make the widget transparent to see the video visible from backend.

    Mate try calling: setWindowOpacity(qreal). setting to 0 = widget is invisible, 1 = widget fully opaque 0.5 = half visible. etc...

    If you are doing this on Unix/Linux apparently you have to ensure that your platform has a Compositing Window Manager. KDE4 onwards has one and recent versions of Gnome but I wouldn't know about others. There's also some other things to be mindful of on X11 platforms. If you search for "setWindowOpacity() X11 issues" you should be able to find better information.
    Last edited by Nomad_Tech; 12th August 2015 at 11:40.
    "When the only tool you have is a hammer, every problem resembles a nail"

  3. #3
    Join Date
    May 2015
    Posts
    30
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: make the widget transparent to see the video visible from backend.

    Thank you so much for your kind reply, I'll try it n let u know.

    Regards,
    Maiya

Similar Threads

  1. Replies: 8
    Last Post: 14th June 2013, 10:16
  2. Replies: 7
    Last Post: 18th May 2010, 12:49
  3. Replies: 8
    Last Post: 16th March 2010, 13:27
  4. Replies: 2
    Last Post: 19th August 2008, 09:46
  5. how can make the widget transparent
    By duduqq in forum Qt Programming
    Replies: 2
    Last Post: 24th June 2008, 12:24

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.