Skip to content

Add support for more designs in QtDesignerForm #622

Description

@tmuguet

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.

Footnotes

  1. https://doc.qt.io/qt-6/qradiobutton.html#details

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions