PDA

View Full Version : ScrollArea for Graphics Item



karankumar1609
11th July 2013, 13:17
Hello Everybody,

I am working on a project which need to show 5-10 graphics items just like stack... means each item will be displayed at the bottom of other item.

And this bunch of items need to be grouped together in a scroll area...

i am stuck somewhere to ass a scroll area in the QGraphicsScene and this scroll area contains QGraphicsItems...


like


// SCENE ->
+--------------------------------------------------------------------------------------+
| | ITEM | |
| | ITEM | |
| | ITEM | |
+--------------------------------------------------------------------------------------+
| | SCROLL AREA | |
| | | |
| +----------------------------------------------------------------------------------+ | |
| | | | |
| | ITEM | | |
| | | | |
| | | | |
| +----------------------------------------------------------------------------------+ | |
| | | |
| +----------------------------------------------------------------------------------+ | |
| | | | |
| | | | |
| | ITEM | | | < - Scroll Bar
| | | | |
| | | | |
| +----------------------------------------------------------------------------------+ | |
| | | |
| +----------------------------------------------------------------------------------+ | |
| | | | |
| | | | |
| | ITEM | | |
| | | | |
| +----------------------------------------------------------------------------------+ | |
+--------------------------------------------------------------------------------------+

Santosh Reddy
11th July 2013, 14:38
It will be simple to use QGraphicsWidget or QGraphicsProxyWidget, you will need to make your items as widgets.