PDA

View Full Version : Slide Up Window (Messenger Style)



December
13th February 2007, 16:26
Hi all,

I need to make a slide-up window (in the right bottom corner of the screen, just like MSN Messenger does when someone sends you a message)..

Can anyone point me in the right direction.. I was thinking of using a QDialog, but after reading all the docs on that, I'm not sure it's the best approach..

Any ideas?

wysota
13th February 2007, 16:29
Use a borderless QWidget together with a QTimer or QTimeLine (Qt4 only) to perform the animation.

December
13th February 2007, 16:43
Thanks, trying that now.. but ran into another problem! How do I find the width / height of the screen my program is running in? I am looking at QScreen.. is that the right way to go?

Thanks for your help :)

wysota
13th February 2007, 17:01
I am looking at QScreen.. is that the right way to go?

No, it's QDesktopWidget what you're after...