Referencing members of DockWidgetPluginGuiInfo causes errors

Attempting to reference members of DockWidgetPluginGuiInfo, such as InitialEnabled, results in an error. This issue applies to all members of DockWidgetPluginGuiInfo.

The only way to circumvent this right now is to tostring() the DockWidgetPluginGuiInfo and parse the members from the returned string itself.

Expected behavior

I should be able to index members of this atomic class. It’s valuable to let me initialize the state of my plugin based on the state of the DockWidgetPluginGuiInfo that it was created with; maintaining parity with initialization state.

2 Likes

Thanks for the report! Found someone to take a look. We’ll get back with an update as soon as we can.

1 Like

Hey @hello42, this looks like a documentation issue. The engine doesn’t support reading those properties.

We’ll get the documentation fixed. If you still need this, please feel free to file a feature request for the API!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.