Results 1 to 7 of 7

Thread: Set opacity in Linux

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Set opacity in Linux

    Quote Originally Posted by wysota View Post
    You are animating windowOpacity of poBaseWidget instead of your MessageFrame instance. Only top-level windows can have their windowOpacity manipulated.
    Oh, I remember reading that in the manual; I didn't noticed I was doing that in my code. Anyway, why is that so? And, well, if the method show by anda_skoa is valid only for top-level windows, I'll restate my first question to: is there a way to create such a "fade" effect that is not by stylesheet and that is valid for any widget I want to apply the effect regardless of being a top level widget or not?
    May the Lord be with you. Always.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Set opacity in Linux

    So you want the content of the window to fade, not the window itself?

    Maybe usingQGraphicsOpacityEffect on the widget which you want to fade.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    Momergil (18th June 2014)

  4. #3
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Set opacity in Linux

    Quote Originally Posted by anda_skoa View Post
    So you want the content of the window to fade, not the window itself?
    Exactly, and your suggestion worked perfectly. Thanks!

    Momergil
    May the Lord be with you. Always.

Similar Threads

  1. QMainWindow Opacity
    By Henry Blue Heeler in forum Newbie
    Replies: 3
    Last Post: 11th January 2014, 21:25
  2. change the opacity
    By askatuak in forum Qt Quick
    Replies: 1
    Last Post: 18th September 2013, 16:20
  3. Plasmoid opacity
    By AcerExtensa in forum KDE Forum
    Replies: 3
    Last Post: 25th July 2009, 14:22
  4. Window Opacity
    By chethana in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2007, 10:45
  5. Opacity in Linux OS
    By shyam prasad in forum Qt Programming
    Replies: 2
    Last Post: 22nd May 2007, 05:59

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.