Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an AsyncQueryModel fit for use with QML's TableView #2

Open
misje opened this issue Jul 11, 2016 · 1 comment
Open

Add an AsyncQueryModel fit for use with QML's TableView #2

misje opened this issue Jul 11, 2016 · 1 comment
Assignees

Comments

@misje
Copy link
Owner

misje commented Jul 11, 2016

TableView uses roles to access column data, so the model needs to provide roleNames() and an implementation of data(…) that uses the role integer for column access. Either let the user specify the role names (and automatically assign them role integers starting from Qt::UserRole + 1) or somehow fetch the role names automatically from the query (if possible).

Since the implementation and complexity will differ from the original AsyncQueryModel, create a new class.

@misje misje self-assigned this Jul 11, 2016
@misje
Copy link
Owner Author

misje commented Jul 17, 2016

Class added in b040c9b. Documentation and example code missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant