Results 1 to 3 of 3

Thread: Graphics overlay over main window?

  1. #1
    Join Date
    Feb 2016
    Location
    Venice, California
    Posts
    87
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Graphics overlay over main window?

    Seasons Greetings!

    I'm trying to overlay some animated graphics effects over my main window. I have a chat application...nothing fancy, and I would like to overlay Rain animation, Snow, or maybe Clouds when the user sends a emoticon.

    First question: where do I start ? Im thinking transparent pixmap in a... frame? qlabel? better way? How do I make it so the layer is above all else.

    Second question: I'd like this overlay to be outside the frame. So, play an animated cloud sequence floating across the window, from left to right, starting say...20-30 pixel outside the frame, then drifting in, and then out the other side. I was thinking.. create a large window, borderless/frameless, transparent, and then adding my chat centered in that. Better way?

    Thanks in Advance.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Graphics overlay over main window?

    You could probably accomplish this with the Graphics Item / View architecture. Embed your chat widget into a QGraphicsWidgetItem, and use semi-transparent custom QGraphicsItems as your effects. Use the Z value to control who is on top.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Feb 2016
    Location
    Venice, California
    Posts
    87
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Graphics overlay over main window?

    Awesome thanks! I'll check it out

Similar Threads

  1. Replies: 0
    Last Post: 20th November 2012, 04:00
  2. Replies: 11
    Last Post: 11th August 2008, 10:14
  3. paintEvent and overlay-graphics
    By maximAL in forum Qt Programming
    Replies: 3
    Last Post: 24th January 2008, 17:17
  4. Replies: 15
    Last Post: 23rd March 2007, 17:16
  5. Adding Rectangular overlay on graphics view
    By forrestfsu in forum Qt Programming
    Replies: 10
    Last Post: 21st November 2006, 20:42

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.