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
Qt Code:
  1. // SCENE ->
  2. +--------------------------------------------------------------------------------------+
  3. | | ITEM | |
  4. | | ITEM | |
  5. | | ITEM | |
  6. +--------------------------------------------------------------------------------------+
  7. | | SCROLL AREA | |
  8. | | | |
  9. | +----------------------------------------------------------------------------------+ | |
  10. | | | | |
  11. | | ITEM | | |
  12. | | | | |
  13. | | | | |
  14. | +----------------------------------------------------------------------------------+ | |
  15. | | | |
  16. | +----------------------------------------------------------------------------------+ | |
  17. | | | | |
  18. | | | | |
  19. | | ITEM | | | < - Scroll Bar
  20. | | | | |
  21. | | | | |
  22. | +----------------------------------------------------------------------------------+ | |
  23. | | | |
  24. | +----------------------------------------------------------------------------------+ | |
  25. | | | | |
  26. | | | | |
  27. | | ITEM | | |
  28. | | | | |
  29. | +----------------------------------------------------------------------------------+ | |
  30. +--------------------------------------------------------------------------------------+
To copy to clipboard, switch view to plain text mode