Qt Itemviews, The Next Generation (Bossa09)

1,033 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,033
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
25
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Qt Itemviews, The Next Generation (Bossa09)

  1. 1. Qt Item Views The Next Generation
  2. 2. • Marius Bugge Monsen • Qt Software, Nokia • Senior SW Engineer • Lead, Qt Widget Team 2
  3. 3. Qt Item Views • What is it? • Why do we need a “Next Generation”? • How does it work?
  4. 4. List View Table View Tree View
  5. 5. • Experience • Graphics View • Animation Framework • Competition
  6. 6. Creative Friday
  7. 7. Warning: Work in progress!
  8. 8. Model View Controller
  9. 9. Data and logic Selection state Presentation Behavior
  10. 10. Data and logic Selection state Presentation Behavior
  11. 11. Data QListModelInterface QListSelectionManager QGraphicsListView QListController Output Input
  12. 12. Data QListSelectionManager QGraphicsListView QListController Output Input
  13. 13. QListWidgetNG QListSelectionManager QGraphicsListView QListController
  14. 14. QListWidgetNG QListDefaultModel QListSelectionManager QGraphicsListView QListController
  15. 15. int main(int argc, char *argv[]) { QApplication app(argc, argv); QListWidgetNG widget; widget.show(); return app.exec(); }
  16. 16. int main(int argc, char *argv[]) { QApplication app(argc, argv); QListWidgetNG widget; widget.controller()->setModel(new MyData(&widget)); widget.show(); return app.exec(); }
  17. 17. Data and logic Selection state QGraphicsListView Behavior
  18. 18. View Item
  19. 19. Invisible item Item
  20. 20. Invisible item Item
  21. 21. Invisible item Item
  22. 22. QGraphicsWidget QGraphicsWidget
  23. 23. QPropertyAnimation QGraphicsWidget Position Size Opacity Rotation Scale
  24. 24. QGraphicsSimpleTextItem QGraphicsLayout Me QGraphicsPixmapItem QGraphicsSvgItem
  25. 25. ‘SUP DAWG YO I HERD U LIKE ITEM VIEWS...
  26. 26. View View
  27. 27. Data and logic Selection state QGraphicsListView Behavior
  28. 28. Data and logic Selection state Behavior
  29. 29. Data and logic Selection state Behavior
  30. 30. Data and logic Selection state PathListView Behavior
  31. 31. int main(int argc, char *argv[]) { QApplication app(argc, argv); QListWidgetNG widget; widget.controller()->setView(new MyPathView); widget.show(); return app.exec(); }
  32. 32. View Item
  33. 33. View Item
  34. 34. Demo
  35. 35. View or Layout ?
  36. 36. Data and logic Selection state Presentation Behavior
  37. 37. Data and logic Selection state Presentation QListController
  38. 38. View Input Events Item Controller
  39. 39. View Scrollbar Item Controller
  40. 40. Data and logic Selection state Presentation QListController
  41. 41. Data and logic Selection state Presentation
  42. 42. Data and logic Selection state Presentation
  43. 43. Data and logic Selection state Presentation QKineticListController
  44. 44. int main(int argc, char *argv[]) { QApplication app(argc, argv); QListWidgetNG widget(new QKineticListController); widget.show(); return app.exec(); }
  45. 45. Demo
  46. 46. http://labs.trolltech.com/page/Projects/Itemview/ItemviewsNG
  47. 47. Thank you! Questions?

×