How do I create a popup message widget,and make it gradually transparent.
I want to make a notification widget,just like the one in Linux.
http://hackadaycom.files.wordpress.c...ifications.jpg
And I want it gradually transparent.
I think of serveral directions to do this:
1.use Animation Framework to tween it.
2.tween it in a loop in another thread.
3.set a qtimer,and each time the timer times out,I make it less visible.
Anyone tells me what is better?Or maybe they are not good plan for that...:confused:
Re: How do I create a popup message widget,and make it gradually transparent.
But what exactly is the problem? Forget about threads, I can tell you that.
Re: How do I create a popup message widget,and make it gradually transparent.
lol....I don't know how to express...
Ok,I am creating a widget.This widget will transit from opaque to transparent within 1 sec.So,how do I acheive this effect?
Re: How do I create a popup message widget,and make it gradually transparent.
What did you already try?
Re: How do I create a popup message widget,and make it gradually transparent.
I haven't try yet,but I guess timer is the easiest way.:confused:
Re: How do I create a popup message widget,and make it gradually transparent.
So try something first and come back with specific questions if you encounter problems.
Re: How do I create a popup message widget,and make it gradually transparent.
Quote:
Originally Posted by
MorrisLiang
I haven't try yet,but I guess timer is the easiest way.:confused:
You seem to be answering your own questions :) Keep this up and you'll soon be a Qt pro :)
(and don't forget Qt Assistant is there to help, along with plenty examples and demos)
Re: How do I create a popup message widget,and make it gradually transparent.
Also look at QTimeLine...