mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Added note to always use parentheses when accessing field values for proper type management.
This commit is contained in:
@@ -324,6 +324,8 @@ print(f"Start: {interval.start_md}, End: {interval.end_md}")
|
||||
|
||||
## PDM UI Editor Attributes - Modern setAttribute Pattern
|
||||
|
||||
Note: Always use () when accessing a field's value. This is required for proper type management. Use `m_myTextField()` instead of `m_myTextField`.
|
||||
|
||||
The CAF (Command Application Framework) PDM (Project Data Model) system has migrated from the old `defineEditorAttribute` pattern to a modern `setAttribute` pattern using type-safe Keys structs.
|
||||
|
||||
### New Pattern: setAttribute with Keys Struct
|
||||
|
||||
Reference in New Issue
Block a user