Weitere ähnliche Inhalte
Ähnlich wie Qt Itemviews, The Next Generation (Bossa09)
Ähnlich wie Qt Itemviews, The Next Generation (Bossa09) (20)
Kürzlich hochgeladen (20)
Qt Itemviews, The Next Generation (Bossa09)
- 2. • Marius Bugge Monsen
• Qt Software, Nokia
• Senior SW Engineer
• Lead, Qt Widget Team 2
- 3. Qt Item Views
• What is it?
• Why do we need a “Next Generation”?
• How does it work?
- 14. Data
QListSelectionManager
QGraphicsListView QListController
Output Input
- 15. QListWidgetNG
QListSelectionManager
QGraphicsListView QListController
- 17. int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QListWidgetNG widget;
widget.show();
return app.exec();
}
- 18. int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QListWidgetNG widget;
widget.controller()->setModel(new MyData(&widget));
widget.show();
return app.exec();
}
- 34. int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QListWidgetNG widget;
widget.controller()->setView(new MyPathView);
widget.show();
return app.exec();
}
- 41. View Input Events
Item Controller
- 42. View Scrollbar
Item Controller
- 46. Data and logic Selection state
Presentation QKineticListController
- 47. int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QListWidgetNG widget(new QKineticListController);
widget.show();
return app.exec();
}