[Qgis-developer] QTableWidget in custom ui feature form?!
Matthias Kuhn
matthias.kuhn at gmx.ch
Sat Jul 26 03:28:21 PDT 2014
Hi Thomas,
What are you trying to accomplish exactly?
If it's just the attributes for a single feature, would the use of a
layout (grid layout/form layout) be good enough instead of using a
table?
If you want to show attributes of more than one feature, would a
relation be what you want?
Maybe you can upload a screenshot or your .ui somewhere.
The table cells themselves are not widgets.
What you could also consider is writing your own .ui form widgets [1].
Currently they are bound to a single field (this may change in the
future), so you would probably need to cheat a bit to accomplish what
you want.
Regards,
Matthias
[1] blog.vitu.ch/10142013-1847/write-your-own-qgis-form-elements
On Sam 26 Jul 2014 10:48:59 CEST, Thomas Kreuzer wrote:
> Hello everyone,
>
> I would like to use a QTableWidget in my custom made feature form (ui
> file)
> However, in qt designer I can't set the object names of the table's cell
> widgets, and thus they are not recognized as feature input.
> I tried to set the appropriate object names in my python init function,
> however, at that point it is already too late.
>
> Has anyone ever done something like this, or could it be feasible to
> change the behavior of when the feature attributes are connected to the
> form (as in after the python init function)?
>
> regards,
> Thomas
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
More information about the Qgis-developer
mailing list