Hi,
I'm currently thinking of reusing the QtDesignerForm component to display QtDesigner forms (.ui) in my application.
There are a few things currently unsupported:
- simple QGIS widgets:
QgsDateEdit, QgsTimeEdit, QgsDateTimeEdit, QgsCheckableComboBox: seems simple wrappers and it looks like it's quite straightforward to add them
QCheckBox: buttonGroups are not supported in QtDesigner; Qt groups QCheckBoxes by their parent widget1; adding this is a bit trickier and seems to have a bit more side-effects,
- checkable
QGroupBox: this seems to complexify the rendering and also has quite some side-effects
What are your thoughts on such improvements?
Note: the context is that there is an existing QGIS Desktop plugin with some dialogs/forms, which we want to port to QWC while maintaining the same UX as much as possible, without duplicating too much code.
Hi,
I'm currently thinking of reusing the
QtDesignerFormcomponent to display QtDesigner forms (.ui) in my application.There are a few things currently unsupported:
QgsDateEdit,QgsTimeEdit,QgsDateTimeEdit,QgsCheckableComboBox: seems simple wrappers and it looks like it's quite straightforward to add themQCheckBox:buttonGroups are not supported in QtDesigner; Qt groupsQCheckBoxes by their parent widget1; adding this is a bit trickier and seems to have a bit more side-effects,QGroupBox: this seems to complexify the rendering and also has quite some side-effectsWhat are your thoughts on such improvements?
Note: the context is that there is an existing QGIS Desktop plugin with some dialogs/forms, which we want to port to QWC while maintaining the same UX as much as possible, without duplicating too much code.
Footnotes
https://doc.qt.io/qt-6/qradiobutton.html#details ↩