-
Notifications
You must be signed in to change notification settings - Fork 18
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
Data Model Interface for Qt #1902
Labels
Scope: Codebase
Related to source code management, build etc.
Type: Enhancement
Enhancement for existing feature
Comments
@rprospero Thoughts? |
I've had a similar idea and I guess it's time to try and formalise a bit of the design. Or it's just time for me to vastly overengineer something. We're likely thinking of the same design (i.e. a template class that takes a reference to a vector and can be passed callbacks for insertion, update, and delete). Here are the issues that I'm currently worried about.
|
trisyoungs
added
the
Scope: Codebase
Related to source code management, build etc.
label
Jul 10, 2024
30 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Scope: Codebase
Related to source code management, build etc.
Type: Enhancement
Enhancement for existing feature
Describe the feature / issue
There are many reasons to use models for managing the viewing and editing of our data in the Dissolve GUI, however there is something of a disconnect in the way we manage data between the CLI "core" code and the Qt GUI.
Can we implement a custom "model" which sits alongside, e.g., a
std::vector<CustomData>
and provides "row" addition and deletion, read/write access to data, much as a QtAbstractItemModel does, but without any of the Qt? A companion Qt class in the GUI could then be designed to directly use this non-Qt model to achieve the desired result in the GUI. Why bother doing this? I'm thinking this would allow:The text was updated successfully, but these errors were encountered: