View Full Version : rotate whole window
kernel_panic
12th March 2008, 11:09
is there any possibility to rotate a whole widget with all components about 180 degrees??
thanks for help.
wysota
12th March 2008, 14:25
You mean like this?
kernel_panic
12th March 2008, 15:00
yes
thats what i need.
wysota
12th March 2008, 15:27
Essentially you have two choices. One is QGraphicsView + Widgets-On-Canvas. The other is to implement a widget proxy like I did. Unfortunately I can't share it with you as it is not complete yet (and it's very far fromeven close to being usable).
kernel_panic
12th March 2008, 15:55
could you give me some snippets?:rolleyes:
markus.kuenkler@gmx.de
thanks:p
wysota
12th March 2008, 16:11
Not really, you'd be laughing for hours ;) Basically I use QPixmap::grabWidget() and forward all events after applying the transformation matrix on their coordinates.
pherthyl
12th March 2008, 18:14
This should work (the principle, not the exact implementation):
http://vir.homelinux.org/blog/archives/88-QWidgetrender.html
wysota
12th March 2008, 18:32
Unfortunately it only renders the widget, which is the easy part... Forwarding events is much more work, believe me :)
kernel_panic
12th March 2008, 18:40
hm... i know about it but i hoped there would be another solution. look at my skinlib. i use QWidget::render and redirect all events...
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.