Fun with physics and QGraphicsView

12 Feb 2008

After some exams I needed to get my head out of worries for a while (still one on the stack to pop…). I know I shouldn’t go into a deep problem (as some issues with KToolBar/KMainWindow I need to debug when my exams are over), mainly because I know that if I start debugging them, I probably won’t stop till I find the problem, and that implies going at 6:00 AM on the morning to bed, what implies not sleeping, what implies not studying ;).

So, here I am, writing a small physics test app on QGraphicsView. I know we have similar stuff, and I know there are plans of getting things of this style to Plasma for icons. It will be hell nice when some of this things can be applied to our real desktop. Meanwhile you can play around.

You can download a video of the example from here, and you can find the sources here. If you want to compile them, you will only need Qt 4 and some terminal to write:

$ qmake -project

$ qmake

$ make

So, that’s all for now folks 🙂

PS: Please note that the code just sucks, but hey… I’m still playing with it, and sometimes it is nice to do really dirty stuff, for having the rest of the things clean (as KDE for instance) 😉

comments powered by Disqus