Results 1 to 8 of 8

Thread: How do I create a popup message widget,and make it gradually transparent.

  1. #1
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default 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.


    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...
    It's not the goodbye that hurts,but the flashback that follow.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default 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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default 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?
    It's not the goodbye that hurts,but the flashback that follow.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How do I create a popup message widget,and make it gradually transparent.

    What did you already try?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default 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.
    It's not the goodbye that hurts,but the flashback that follow.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default 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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How do I create a popup message widget,and make it gradually transparent.

    Quote Originally Posted by MorrisLiang View Post
    I haven't try yet,but I guess timer is the easiest way.
    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)

  8. #8
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How do I create a popup message widget,and make it gradually transparent.

    Also look at QTimeLine...

Similar Threads

  1. Create Transparent PNG Image
    By hvitual in forum Qt Programming
    Replies: 1
    Last Post: 2nd August 2009, 14:35
  2. Replies: 2
    Last Post: 19th August 2008, 09:46
  3. Make the QComboBox popup translucent or transparent ?
    By charlse in forum Qt Programming
    Replies: 5
    Last Post: 18th August 2008, 16:18
  4. how can make the widget transparent
    By duduqq in forum Qt Programming
    Replies: 2
    Last Post: 24th June 2008, 12:24
  5. how to create a popup dialog
    By Morea in forum Qt Programming
    Replies: 1
    Last Post: 19th November 2006, 16:40

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.