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

FormDialog and UIFormWidget do not support widgets that inherit from QWidget only #174

Open
jcornall opened this issue Dec 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jcornall
Copy link
Collaborator

jcornall commented Dec 18, 2024

When trying to add a widget that is a subclass of the QWidget class only, a number of methods in the UIFormWidget class (i.e. getWidgetState(), applyWidgetState()) cannot execute correctly because the required class methods do not exist in the target class. Widget classes such as QLabel, QLineEdit and UISliderWidget are supported, however no such support exists for classes that only inherit from QWidget.

If a class is defined that inherits from QWidget and creates a layout containing multiple widgets, the UIFormWidget methods cannot 'unpack' the methods and attributes of these 'child' widgets. Additional methods would need to be added to the target class, and the UIFormWidget methods would need to be altered to accommodate this.

See also #125, #173, #175

@jcornall jcornall added the bug Something isn't working label Dec 18, 2024
@jcornall jcornall added enhancement New feature or request and removed bug Something isn't working labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant